定义一个配置记录是不是timescaledb

This commit is contained in:
2025-09-24 16:06:05 +08:00
parent 6520f2e9d7
commit b668f3fbb5
7 changed files with 46 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ database:
password: "pig-farm-controller"
dbname: "pig-farm-controller"
sslmode: "disable" # 在生产环境中建议使用 "require"
is_timescaledb: false
max_open_conns: 25 # 最大开放连接数
max_idle_conns: 10 # 最大空闲连接数
conn_max_lifetime: 600 # 连接最大生命周期(秒)