This package has been deprecated

Author message:

Package is unmaintained. Try https://github.com/knex/knex instead.

simple-pmysql

3.0.2 • Public • Published

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())

Package Sidebar

Install

npm i simple-pmysql

Weekly Downloads

0

Version

3.0.2

License

MIT

Unpacked Size

9.17 kB

Total Files

3

Last publish

Collaborators

  • nskazki