Commit Graph

79 Commits

Author SHA1 Message Date
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
yunwuxin
e093a6661e 分页的每页数量可以通过配置全局定义 2016-05-18 16:51:23 +08:00
thinkphp
a00c4c51fe 注释改进 2016-05-18 12:30:55 +08:00
thinkphp
fdd41cd1c7 改进Model类的getData方法 2016-05-18 11:01:49 +08:00
thinkphp
198ea76923 改进Query类 2016-05-18 10:20:34 +08:00
thinkphp
5a01b29c30 修正Merge模型 2016-05-17 17:01:04 +08:00
thinkphp
a4a14b3bf1 修正Query类 改进Response类 改进异常输出 2016-05-16 16:39:17 +08:00
thinkphp
199825ec32 改进Response类 支持扩展不同的输出类型 改进Model类 不同的模型采用不同的查询对象实例 修正Request类一处错误 助手函数view改进 直接返回Response类对象实例 2016-05-16 14:18:47 +08:00
thinkphp
00b17411b6 改进Model类 2016-05-14 20:54:22 +08:00
thinkphp
15e01901fb 修正Query类一处错误 2016-05-11 18:14:16 +08:00
thinkphp
4633f240d0 query类增加fetchClass方法用于指定返回数据集类型 2016-05-09 12:22:34 +08:00
thinkphp
144a6132e6 Db类增加RESULTSET_ARRAY RESULTSET_COLLECTION 和 RESULTSET_CLASS 常量
数据库Connection类增加resultSetType属性定义 支持设置数据集返回类型
2016-05-09 11:45:00 +08:00
thinkphp
6723257a4b 修正Query类的find方法一处警告错误 2016-05-09 10:01:00 +08:00
thinkphp
583af3aed6 Query类value和column增加对调用field链式操作方法的处理 2016-05-06 18:31:43 +08:00
yunwuxin
a00df4246e 分页功能 2016-05-06 18:09:53 +08:00
thinkphp
28a88d9937 改进Query类的column对没有查询到数据的处理 2016-05-05 17:30:29 +08:00
thinkphp
b5beaeded3 改进Model类支持 按照查询条件 更新 2016-05-05 12:34:39 +08:00
thinkphp
544e3ea833 每个模型类采用 独立的数据库实例避免混淆 2016-05-05 11:33:32 +08:00
thinkphp
6b26b1ee25 改进Model类和Query类 Model类的name属性改为static定义 2016-05-04 16:24:51 +08:00
thinkphp
027d4d5b88 改进Query类的column方法 2016-05-03 23:15:52 +08:00
thinkphp
32c148ff2b Query类的column方法支持传入*号 2016-05-03 20:32:40 +08:00
thinkphp
0af5b072a9 改进Query类的find方法 支持查询主键为0的情况 2016-05-03 18:20:33 +08:00
thinkphp
a8a8d93baa 修正数据库字段大小写设置问题 修正Query类的where方法对原生sql条件的判断 2016-04-30 15:05:52 +08:00
thinkphp
494b0dce2b 改进Query类find和select方法的缓存处理 2016-04-29 11:14:24 +08:00
thinkphp
8eec4c5eb2 query类增加insertGetId方法 模型类的save方法 新增的时候 返回自增id 2016-04-28 23:10:04 +08:00
thinkphp
c9ab0cc72a 改进where方法对原生条件的判断 2016-04-28 14:36:46 +08:00
thinkphp
810a88a48e 改进where方法的原生sql条件 并且支持参数绑定 2016-04-28 14:19:55 +08:00
thinkphp
43fb7cc445 改进Query类和Build类 改进查询语法 2016-04-28 14:06:06 +08:00
thinkphp
006b45dd9a 改进query类的聚合查询方法的返回值 2016-04-27 17:35:49 +08:00
thinkphp
7599d76864 Query类的options方法改为protected 不对外调用 2016-04-27 17:05:04 +08:00
thinkphp
0b104d2b49 改进一处 错误 2016-04-27 16:49:36 +08:00