1.3.2 • Published 7 years ago

sm-mysql v1.3.2

Weekly downloads
31
License
ISC
Repository
-
Last release
7 years ago

操作数据库的简单接口

sm-mysql.

操作数据库的简单接口,支持链式操作,返回结果列表

Installation

npm install sm-mysql --save

支持列表

以下操作已经支持:

  • 新增数据库
  • 删除数据库
  • 新增数据表
  • 删除数据表
  • 复制数据表
  • 插入新数据
  • 更新数据
  • 删除数据
  • 查询数据

Example

var SMysql = require('sm-mysql')
var db = {  
  host     : 'localhost',  
  user     : 'root',  
  password : 'password',  
  port     : '3724',
};
var sMysql = new SMysql(db,'sql');
sMysql
    .createTable('table')
    .insert('table',[{'name': 'test1','password': '12'},{'name': 'test2','password': '123'}])
    .search('table')
    .end(function(data){  // data为各个步骤的返回结果
        console.log(data);
    });

具体请看test文件夹里的测试用例

License

MIT Licensed. Copyright (c) Zhaoxiang Zhang 2017.

1.3.2

7 years ago

1.3.0

7 years ago

1.2.8

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago