@yxl1983/dbserver
数据服务器,提供MySQL,Redis远程连接脚本执行
Last updated 2 years ago by yxl1983 .
ISC · Original npm · Tarball · package.json
$ cnpm install @yxl1983/dbserver 
SYNC missed versions from official npm registry.

依赖模块安装

  • 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

删除打包文件

Current Tags

  • 0.0.4                                ...           latest (2 years ago)

3 Versions

  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |