# 6.7 Client gorm
# 范式
| 名称 | 类型 | 描述 | 
|---|---|---|
| dsn | string | 数据库地址 | 
| debug | bool | 是否debug | 
| maxIdleConns | int | 最大空闲连接数 | 
| MaxOpenConns | int | 最大活动连接数 | 
| connMaxLifetime | time | 连接的最大存活时间 | 
| level | string | 创建连接的错误级别,=panic时,如果创建失败,立即panic | 
| slowThreshold | time | 慢日志阈值 | 
| dialTimeout | time | 拨超时时间 | 
# 示例
[jupiter.mysql.test]
   connMaxLifetime = "300s"
   debug = true
   dsn = "root:test@tcp(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local&readTimeout=1s&timeout=1s&writeTimeout=3s"
   level = "panic"
   maxIdleConns = 50
   maxOpenConns = 100
1
2
3
4
5
6
7
2
3
4
5
6
7