npm.io
1.0.1 • Published 8 years ago

mill-mysql

Licence
ISC
Version
1.0.1
Deps
1
Size
4 kB
Vulns
0
Weekly
0

mill-mysql

mysql 模块的使用封装

安装

npm install mill-mysql --save

简单使用

let millMysql = require("mill-mysql");

millMysql.init({password:'123'});

millMysql.query('select * from ?? where ?? = ?' ,["st_question",'t_type',1],r=>console.log(r));

millMysql.close();
默认配置项
var options = {
	  connectionLimit : 10,
	  host            : 'localhost',
	  user            : 'root',
	  password        : '',
	  database        : 'test'
	};

Keywords