parent
c4eb55e8d4
commit
3081d21558
35
History.md
35
History.md
|
@ -1,5 +1,10 @@
|
|||
3.0.0 / 2018-04-16
|
||||
==================
|
||||
# 3.0.1 / 2018-06-05
|
||||
|
||||
* 修复filter解析的一个bug
|
||||
|
||||
|
||||
# 3.0.0 / 2018-04-16
|
||||
|
||||
> 这是一个全新的大版本, 不向下兼容 2.x。
|
||||
|
||||
* 重构 API, 使用链式操作, 逻辑更加清晰
|
||||
|
@ -8,42 +13,32 @@
|
|||
* 新增 tableCreate/dbCreate 方法, 支持创建数据库/数据表
|
||||
* 新增 indexCreate/indexDrop/indexList, 支持对索引的增删改查
|
||||
|
||||
# 2.2.2 / 2018-03-22
|
||||
|
||||
2.2.2 / 2018-03-22
|
||||
==================
|
||||
* 增加时区和 BIGINT 配置
|
||||
|
||||
# 2.2.0 / 2018-03-15
|
||||
|
||||
2.2.0 / 2018-03-15
|
||||
==================
|
||||
* 连接池增加失败移除配置和恢复时间
|
||||
|
||||
# 2.1.3 / 2018-03-14
|
||||
|
||||
2.1.3 / 2018-03-14
|
||||
==================
|
||||
* 优化异常输出
|
||||
|
||||
2.1.2 / 2018-03-06
|
||||
==================
|
||||
# 2.1.2 / 2018-03-06
|
||||
|
||||
* Bug 修复
|
||||
* 修改连接方式
|
||||
* 异常返回的格式改为对象
|
||||
|
||||
# 2.1.0 / 2018-03-03
|
||||
|
||||
|
||||
2.1.0 / 2018-03-03
|
||||
==================
|
||||
* 大重构, 更加简练, 结构也更加合理
|
||||
|
||||
# 2.0.1 / 2017-05-22
|
||||
|
||||
2.0.1 / 2017-05-22
|
||||
==================
|
||||
* 优化一处由于 js 对象引用类型引起的混乱
|
||||
|
||||
# 2.0.0 / 2017-02-26
|
||||
|
||||
2.0.0 / 2017-02-26
|
||||
==================
|
||||
* new project
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -158,9 +158,9 @@ const parser = {
|
|||
}
|
||||
if (typeof opt === 'object') {
|
||||
if (opt.$and) {
|
||||
return parse$and(opt.$and)
|
||||
return ` WHERE ${parse$and(opt.$and)}`
|
||||
} else if (opt.$or) {
|
||||
return parse$or(opt.$or)
|
||||
return ` WHERE ${parse$or(opt.$or)}`
|
||||
}
|
||||
return ` WHERE ${parse$opt(opt)}`
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mysqli",
|
||||
"version": "3.0.0",
|
||||
"version": "3.0.1",
|
||||
"description": "MySQL tool",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue