@luzhongk/node-mysql

1.1.3 • Public • Published

@luzhongk/node-mysql

Usage

const MysqlHelper = require('@luzhongk/node-mysql')

const mysql = new MysqlHelper({
  host: '',
  port: '',
  user: '',
  password: '',
  database: ''
})

// mysql.list('kuan_article', { id: 55 }).then(res => {
//   console.log(res.data.length)
//   mysql.destroy()
// })

// mysql.detail('kuan_article', 55).then(res => {
//   console.log(res)
//   mysql.destroy()
// })

// mysql.add('work_version', { title: '测试' }).then(res => {
//   console.log(res)
//   mysql.destroy()
// })

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @luzhongk/node-mysql

    Weekly Downloads

    1

    Version

    1.1.3

    License

    ISC

    Unpacked Size

    5.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • luzhongk