Commit Graph

109 Commits

Author SHA1 Message Date
yunwuxin
ea1b1af3a3 完善事务嵌套 2016-06-15 11:10:24 +08:00
cbwfree
02595c8350 Query 的 delete() 方法使用 fetchSql() 报错
原代码第 `1976` 行 `$this->getRealSql($sql,$this->bind);` 应该修改为 `$this->connection->getRealSql($sql,$this->bind);`
2016-06-14 16:24:52 +08:00
thinkphp
5f76cd826a Query类whereTime方法改进 支持日期表达式的缩写 2016-06-14 12:29:05 +08:00
thinkphp
8fa12a4d16 Query类的datetime方法更改为whereTime方法 并支持日期表达式查询 2016-06-14 12:23:44 +08:00
thinkphp
9bfeeb8ac6 改进Query类的selectInsert方法 对 table参数的处理 2016-06-14 08:37:14 +08:00
thinkphp
a9cfe2a801 增加日期和时间查询方法 datetime 2016-06-13 16:27:59 +08:00
thinkphp
b6b8b6dcb4 Controller类增加batchValidate属性 validate方法增加batch参数,用于设置是否批量验证
异常类改进
2016-06-13 11:09:42 +08:00
thinkphp
00b0c0f229 改进Model类 改进查询方法的SQL返回机制 2016-06-12 22:47:08 +08:00
thinkphp
b1c8665b99 改进异常类 2016-06-12 17:08:48 +08:00
thinkphp
af1bc0429d 修正Query类的with方法 2016-06-12 16:51:49 +08:00
thinkphp
b10635e22e 异常类规范 增加异常类 改进Query类的value和column的缓存冲突问题 2016-06-12 16:35:42 +08:00
thinkphp
9023041e6b Query类增加findOrFail selectOrFail快捷方法 2016-06-12 12:53:06 +08:00
thinkphp
ccd1e2c2e7 修正Query类的with方法 2016-06-12 12:08:47 +08:00
thinkphp
34a08232aa 一对一关联定义支持指定 join类型 用于预载入查询 2016-06-09 17:19:13 +08:00
thinkphp
3c57c610dc 预载入查询支持指定字段查询 2016-06-09 10:30:04 +08:00
thinkphp
3baf150ce1 Query类增加connect方法用于切换数据库 2016-06-06 18:01:55 +08:00
thinkphp
326ef84f3b 改进Input类 2016-06-04 17:33:33 +08:00
thinkphp
40b8b30dc7 改进Query类的value方法 添加default参数 改进聚合查询方法 2016-06-04 14:01:02 +08:00
thinkphp
99acf3d0b0 改进Query类 2016-06-03 14:28:35 +08:00
thinkphp
8af18e3527 改进Query类的parseExpress方法 2016-06-03 14:27:14 +08:00
thinkphp
c6b8cecc89 改进Db类注释 2016-06-03 14:00:08 +08:00
thinkphp
50810bef0c 改进Query类的find和select方法对cache的处理 2016-06-02 20:59:52 +08:00
thinkphp
625a8767c5 Model类增加全局查询范围定义 改进Query类 2016-06-02 14:18:18 +08:00
thinkphp
d65882e20c 去除 IS_CGI IS_MAC NOW_TIME 常量 2016-06-02 12:21:36 +08:00
thinkphp
3420eb5f60 注释改进 2016-06-01 12:56:22 +08:00
thinkphp
c6595f23aa Connection类的parseSqlTable方法移动到Query类 2016-06-01 12:42:51 +08:00
thinkphp
83cb8093aa 注释完善 2016-06-01 10:47:30 +08:00
thinkphp
431c5d1a28 改进Query类的chunk方法 支持参数绑定 2016-06-01 08:34:04 +08:00
thinkphp
28254c8126 修正Query类的inserGetId方法 2016-05-31 18:46:27 +08:00
thinkphp
923c6657ad 改进Query类的lock方法 支持主从 2016-05-31 16:52:20 +08:00
thinkphp
d36903bddc 改进Query类的getTableInfo方法 支持对表名的特殊字符定义 2016-05-30 16:28:53 +08:00
thinkphp
55f630b33e 改进Queery类 增加whereXor方法 去除 whereExist whereOrExist whereNotExist whereOrNotExist方法 2016-05-29 17:09:35 +08:00
thinkphp
14de14a1eb Query类增加分表规则方法partition 2016-05-29 11:49:08 +08:00
thinkphp
f4e3a3466c Query类增加分表获取方法 支持不同的规则 2016-05-29 11:27:49 +08:00
thinkphp
83e3604314 改进Model类的getPk方法 2016-05-29 11:20:22 +08:00
thinkphp
e890d43d55 关联查询支持远程一对多关联 Query类view方法的field参数支持传入true 2016-05-25 17:57:50 +08:00
thinkphp
44e86a7f53 改进Query类的view方法 2016-05-24 22:33:52 +08:00
thinkphp
165c72e0aa 关联定义支持数据表别名定义 2016-05-24 12:29:51 +08:00
thinkphp
118800ed93 改进Query类的view方法 支持数据表定义别名 2016-05-24 11:34:52 +08:00
thinkphp
71d5e668d1 改进where和whereor闭包查询 2016-05-23 18:02:32 +08:00
thinkphp
6172303c97 增加 database.auto_timestamp 配置参数用于配置是否需要自动写入时间戳字段 2016-05-23 11:47:33 +08:00
thinkphp
90c5dc79ed 修正Query类的getLastSql方法 2016-05-21 17:25:53 +08:00
thinkphp
f3aceca2b0 改进Query类的field方法 2016-05-21 11:38:18 +08:00
thinkphp
25981119ad Query类的view方法field参数支持字符串 2016-05-21 10:24:08 +08:00
thinkphp
f7e26259d0 Query类增加view方法用于视图查询 2016-05-20 23:30:26 +08:00
thinkphp
92496f65a1 Query类增加getlastsql方法 2016-05-20 14:47:20 +08:00
thinkphp
6dd393bd71 改进Query类的insertGetId方法 支持传入自增序列名 2016-05-20 11:10:20 +08:00
gjianbo
7a0d387e10 Update Query.php 2016-05-19 15:02:21 +08:00
thinkphp
e151d70f62 query类增加sequence方法 用于设置 自增序列名 2016-05-19 12:38:11 +08:00
thinkphp
4898e333b5 改进代码 2016-05-18 18:28:25 +08:00