mysql.toml 583 B

1234567891011
  1. [demo]
  2. addr = "127.0.0.1:3306"
  3. dsn = "{user}:{password}@tcp(127.0.0.1:3306)/{database}?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  4. readDSN = ["{user}:{password}@tcp(127.0.0.2:3306)/{database}?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8","{user}:{password}@tcp(127.0.0.3:3306)/{database}?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "200ms"
  9. execTimeout = "300ms"
  10. tranTimeout = "400ms"