mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Db类增加RESULTSET_ARRAY RESULTSET_COLLECTION 和 RESULTSET_CLASS 常量
数据库Connection类增加resultSetType属性定义 支持设置数据集返回类型
This commit is contained in:
@@ -16,6 +16,12 @@ namespace think;
|
||||
*/
|
||||
class Db
|
||||
{
|
||||
// 数组数据集
|
||||
const RESULTSET_ARRAY = 1;
|
||||
// 对象数据集
|
||||
const RESULTSET_COLLECTION = 2;
|
||||
// 自定义对象数据集
|
||||
const RESULTSET_CLASS = 3;
|
||||
// 数据库连接实例
|
||||
private static $instances = [];
|
||||
// 查询次数
|
||||
|
||||
Reference in New Issue
Block a user