github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/extend/orm/test/application-test1.yaml (about) 1 base: 2 datasource: 3 username: root 4 password: ZljIsysc0re123 5 host: 10.30.30.78 6 port: 23306 7 # 目前支持: mysql、postgresql、sqlite、sqlserver 8 driver-name: mysql 9 # 数据库名 10 db-name: isc_demo 11 # 示例:charset=utf8&parseTime=True&loc=Local 等url后面的配置,直接配置即可 12 url-config: 13 charset: utf8 14 loc: Local 15 # 连接池配置 16 connect-pool: 17 # 最大空闲连接数 18 max-idle-conns: 10 19 # 最大连接数 20 max-open-conns: 10 21 # 连接可重用最大时间;带字符(s:秒,m:分钟,h:小时) 22 max-life-time: 290s 23 # 连接空闲的最大时间;带字符(s:秒,m:分钟,h:小时) 24 max-idle-time: 10s 25 mysql: 26 disable-with-returning: true 27 logger: 28 group: 29 orm: 30 level: debug