0.0.4 • Published 6 years ago
@yxl1983/dbserver v0.0.4
依赖模块安装
- cnpm i koa --save
- cnpm i koa-body --save
- cnpm i koa-route --save
- cnpm i mysql --save
- cnpm i redis --save
- cnpm i async --save
0.0.4更新
增加API: runShellScript, 用于执行临时Shell脚本 传入参数格式如下
data = {
path: '/home/temp/test.sh',
content: `
rem 'This is a test'
ll
date
`,
}
MySQL配置文件
module.exports = [
{
name: 'MysqlConnector',
enable: true,
opts: {
host: '127.0.0.1',
port: 3306,//optional
database: 'fishjoy',
user: 'root',
password: 'root',
charset: 'utf8',//optional
insecureAuth: '',//optional
connectionLimit: 100,
}
},
];
Redis配置文件
module.exports = [
{
name: 'RedisConnector',
enable: true,
opts: {
host: '127.0.0.1',
port: 6379,
db: 0,
prefix: '',
auth: true,
password: 'pwd'
}
},
];
版本更新0.0.3
删除打包文件