mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
配置文件调整
This commit is contained in:
@@ -235,7 +235,7 @@ return [
|
|||||||
// 数据库连接DSN配置
|
// 数据库连接DSN配置
|
||||||
'dsn' => '',
|
'dsn' => '',
|
||||||
// 服务器地址
|
// 服务器地址
|
||||||
'hostname' => 'localhost',
|
'hostname' => '127.0.0.1',
|
||||||
// 数据库名
|
// 数据库名
|
||||||
'database' => '',
|
'database' => '',
|
||||||
// 数据库用户名
|
// 数据库用户名
|
||||||
@@ -262,8 +262,18 @@ return [
|
|||||||
'slave_no' => '',
|
'slave_no' => '',
|
||||||
// 是否严格检查字段是否存在
|
// 是否严格检查字段是否存在
|
||||||
'fields_strict' => true,
|
'fields_strict' => true,
|
||||||
|
// 数据集返回类型
|
||||||
|
'resultset_type' => 'array',
|
||||||
// 自动写入时间戳字段
|
// 自动写入时间戳字段
|
||||||
'auto_timestamp' => false,
|
'auto_timestamp' => false,
|
||||||
|
// 时间字段取出后的默认时间格式
|
||||||
|
'datetime_format' => 'Y-m-d H:i:s',
|
||||||
|
// 是否需要进行SQL性能分析
|
||||||
|
'sql_explain' => false,
|
||||||
|
// Builder类
|
||||||
|
'builder' => '',
|
||||||
|
// Query类
|
||||||
|
'query' => '\\think\\db\\Query',
|
||||||
],
|
],
|
||||||
|
|
||||||
//分页配置
|
//分页配置
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ abstract class Connection
|
|||||||
'resultset_type' => 'array',
|
'resultset_type' => 'array',
|
||||||
// 自动写入时间戳字段
|
// 自动写入时间戳字段
|
||||||
'auto_timestamp' => false,
|
'auto_timestamp' => false,
|
||||||
// 时间戳格式
|
// 时间字段取出后的默认时间格式
|
||||||
'datetime_format' => 'Y-m-d H:i:s',
|
'datetime_format' => 'Y-m-d H:i:s',
|
||||||
// 是否需要进行SQL性能分析
|
// 是否需要进行SQL性能分析
|
||||||
'sql_explain' => false,
|
'sql_explain' => false,
|
||||||
|
|||||||
Reference in New Issue
Block a user