Commit Graph

376 Commits

Author SHA1 Message Date
thinkphp
0e4549fe76 Query类cache方法增加第三个参数 用于设置缓存标签 2016-09-03 21:41:33 +08:00
thinkphp
7d9b65e63b 改进Query类的find方法 2016-09-02 12:26:55 +08:00
thinkphp
da4b98fca7 改进Query类的查询方法 2016-09-01 13:31:30 +08:00
thinkphp
10a323b2c1 修正sqlsrv驱动 2016-08-31 18:00:45 +08:00
thinkphp
655e6fb38f 改进Query类的查询方法 2016-08-31 17:52:32 +08:00
thinkphp
a322533596 删除sqlsrv驱动的parseOrder方法 2016-08-31 15:24:20 +08:00
thinkphp
389b4c7dd2 环境变量定义文件更改为 .env 不再使用php数组方式定义 改为兼容ini格式定义(支持数组方式) 2016-08-31 11:43:05 +08:00
thinkphp
b59649d128 改进Query类的select方法 2016-08-30 12:08:31 +08:00
thinkphp
bb3b9a4284 改进Query类的select方法的返回结果集判断 Connection类增加getNumRows方法 2016-08-29 11:32:43 +08:00
thinkphp
5725e21caf 改进Query类的field方法 2016-08-24 18:07:03 +08:00
thinkphp
dead0d561f 改进Query类 2016-08-24 17:10:19 +08:00
thinkphp
29bd46caf5 改进模型的字段信息定义第二次查询不生效的问题 2016-08-24 16:12:05 +08:00
thinkphp
ee4960af78 改进Query类的getTableInfo方法 2016-08-24 15:35:55 +08:00
thinkphp
6cd6111a13 修正Connection类 2016-08-22 21:54:41 +08:00
thinkphp
17201e9954 改进对存储过程exec的支持 2016-08-22 18:54:08 +08:00
thinkphp
e7e79f4c78 修改 数据库事务方法的注释 取消返回值 2016-08-19 17:00:55 +08:00
thinkphp
bce9e36ded 改进Connection类的getLastInsID方法获取 2016-08-17 16:37:08 +08:00
thinkphp
65053bc1a5 改进Query类的chunk方法对主键的获取 2016-08-17 16:07:05 +08:00
thinkphp
60af21b56e 改进Query类的update和delete的缓存key判断 2016-08-17 11:39:48 +08:00
thinkphp
dfb92fa9dd Query类的update和delete方法支持调用cache方法 会自动清除指定key的缓存 配合查询方法的cache方法一起使用 Model类的get方法第三个参数传入true的时候会自动更新缓存 2016-08-17 11:17:03 +08:00
thinkphp
f3ff63268a Model类get方法使用主键查询自动缓存 2016-08-16 22:39:53 +08:00
thinkphp
2beba43b2e Model类的save方法参数和返回值调整 返回值固定为影响的记录数 Connection类及Query类的execute方法和getLastInsID方法参数调整 2016-08-15 19:17:32 +08:00
thinkphp
d76137382c 改进Query类的field方法 2016-08-11 16:28:40 +08:00
thinkphp
5a612058ef 改进Connection类connect方法的异常处理 改进Query类一处可能的问题 2016-08-11 14:00:24 +08:00
WeakSun
237e3b40e7 修正两处错误
修正两处错误
2016-08-10 14:44:44 +08:00
thinkphp
b1ae6b89c2 记录数据库连接时间 2016-08-09 16:40:34 +08:00
thinkphp
6a2fda25de 改进Connection类的connect方法 2016-08-09 12:16:36 +08:00
thinkphp
1a089223ea 改进Query类的chunk方法获取主键 2016-08-09 11:14:24 +08:00
thinkphp
7b8f656827 改进Query类的feild方法 2016-08-08 14:25:56 +08:00
thinkphp
8c39270c58 改进sql日志记录 2016-08-08 11:15:08 +08:00
thinkphp
4e66bf24e6 Connection类的debug方法改进,增加第二个参数,改进数据库驱动的获取表信息的sql记录 2016-08-08 11:09:44 +08:00
thinkphp
f21e6827e1 改进Query类的field方法 2016-08-08 10:33:34 +08:00
thinkphp
3cf55ec9ca 去掉Builder类的options属性 2016-08-08 10:23:01 +08:00
thinkphp
5fb2c67f60 修正insertall 2016-08-07 12:46:11 +08:00
thinkphp
c927df2f4b 配置修改 2016-08-06 22:51:34 +08:00
thinkphp
177a2456e8 改进Query类的setInc和setDec方法 2016-08-06 13:08:04 +08:00
thinkphp
e4280c128e 模型增加软删除功能 2016-08-05 23:34:21 +08:00
thinkphp
700dc44d4f 改进Model的延迟写入方法 2016-08-05 18:14:01 +08:00
ThinkPHP
cde6204373 Merge pull request #239 from zzpuser/patch-9
修正了延迟递减时实际为递增的错误。
2016-08-05 04:50:16 -05:00
thinkphp
a08967d825 改进Model类 支持设定 主键、字段信息和字段类型 不依赖自动获取 2016-08-05 13:48:58 +08:00
thinkphp
ac528e0680 改进当数据库驱动类型使用完整命名空间的时候 Query类的builder方法的问题 2016-08-05 10:34:54 +08:00
zzpuser
0e27b1d896 Update Query.php 2016-08-04 10:46:28 +08:00
zzpuser
2fb6ce8021 修正了延迟递减时实际为递增的错误。
由于在缓存中存放的递减值为负值,所以这里在拿出这个缓存值(缓存值本身为负值)后运算符应该为+,否则的话运算结果是错误的。
2016-08-03 19:36:34 +08:00
thinkphp
e3339ad158 改进sqlsrv驱动 2016-08-03 17:46:27 +08:00
thinkphp
81a2222143 Route类的domain方法和域名路由动态注册机制调整 修正Connction类 2016-08-02 16:53:05 +08:00
thinkphp
17c76a41c7 改进Query类的driver属性设置 删除Connection类的getDriverName方法 改进connect方法 2016-08-02 15:38:58 +08:00
chunice
21fced658a 完善Db::connect() 的 phpdoc 注释,增强代码提醒 2016-07-28 23:24:09 +08:00
thinkphp
e74907f5c9 改进Query类的lazyWrite方法 改进缓存单元测试 核心去除redis缓存驱动 2016-07-25 13:37:45 +08:00
水平凡
b59098a559 修改getDriverName方法 2016-07-22 11:14:40 +08:00
水平凡
0351563c84 优化builder方法 2016-07-22 11:13:49 +08:00