1.0.2 • Published 3 years ago

mill-mysql-utils v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

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);
});