Commit Graph

17 Commits

Author SHA1 Message Date
thinkphp
bd930b397e 改进getdbfields方法 2015-11-23 12:21:55 +08:00
thinkphp
fa17feddf0 改进model类order方法
添加json类型支持 支持json字段查询例如 $map['user$.name'] = 'thinkphp'
escapeString方法采用PDO::quote方法
2015-11-21 12:06:00 +08:00
thinkphp
c14da999a6 规范调整 2015-10-04 22:48:57 +08:00
thinkphp
27e724bb3c PSR规范调整 2015-10-04 13:05:15 +08:00
thinkphp
1cfb3704c6 规范调整 2015-10-03 21:43:48 +08:00
thinkphp
cb9faf2aa9 设置了主从服务器后,支持从主服务器读数据
方法是在模型类中调用 readMaster方法
$this->readMaster()->select();

该方法当此调用有效
2015-06-12 15:21:08 +08:00
thinkphp
956be17494 改进model类的db方法,支持直接使用:
$model->db('config') //读取config配置参数作为数据库连接信息

$model->db('config','mysql://root@127.0.0.1/test') //读取指定数据库连接信息连接
2015-05-30 15:30:58 +08:00
thinkphp
36a84e75de 添加api接口的支持 2015-05-12 15:34:04 +08:00
thinkphp
9e44381f6f 改进数据表的前缀设置 2015-02-25 10:50:58 +08:00
thinkphp
c6395bc3bf 改进Model类的map方法 2015-02-25 10:04:08 +08:00
thinkphp
827aa459d4 修正数据库配置参数prefix无效的问题 2015-02-25 09:49:31 +08:00
thinkphp
78bd79bb6c fetchsql参数默认改完true 便于调用 2015-02-25 09:34:19 +08:00
thinkphp
e96ac8493f session类和input类调整
注释调整
2015-02-23 20:54:16 +08:00
thinkphp
d81c715dd5 改进Model类 2015-02-21 10:35:46 +08:00
thinkphp
6ecc2963f1 改进数据库驱动 2015-01-29 14:31:45 +08:00
huangdijia
55adc28ac0 修正 命名空间大小写 2015-01-24 09:32:35 +08:00
thinkphp
b32d00b7f8 更新 2015-01-22 09:29:54 +08:00