3.0.2 • Published 5 years ago

simple-pmysql v3.0.2

Weekly downloads
16
License
MIT
Repository
github
Last release
5 years ago

PMysql

npm i -S simple-pmysql
import P from 'bluebird'
import PMysql, { format as qFormat } from 'simple-pmysql'

let bdParams // = { host: ... }
let pMysql = PMysql(bdParams)
let select = qFormat('SELECT * FROM example WHERE id != ?', [ 0 ])

P.resolve()
    .then(() => pMysql.init())
    .then(() => pMysql.query(select).then(console.log))
    .then(() => pMysql.kill())
3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago