mill-mysql-utils

1.0.2 • Public • Published

mill-mysql-utils

操作MySQL的工具类

let app=require('../index.js');
app.simpleConfig({
		host:'192.168.99.254',
		database:'twdrp',
		user:'root',
		password:'root'
})
app.getQuery("SELECT * from information_schema.`COLUMNS` where table_schema=?",['twdrp'])
.then(function (data) {
	console.log(data.rows);
},function (msg) {
	console.log(msg.data);
});

Readme

Keywords

none

Package Sidebar

Install

npm i mill-mysql-utils

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.81 kB

Total Files

6

Last publish

Collaborators

  • keley2013