feat: support customize dsn for mysql and pg (#6031)

* support for unixsocket to connect to mysql

* feat: customize dsn for mysql and pg

---------

Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
Mars160
2024-02-23 15:28:48 +08:00
committed by GitHub
parent 424ab2d0c0
commit 1f835502ba
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,7 @@ type Database struct {
DBFile string `json:"db_file" env:"FILE"`
TablePrefix string `json:"table_prefix" env:"TABLE_PREFIX"`
SSLMode string `json:"ssl_mode" env:"SSL_MODE"`
DSN string `json:"dsn" env:"DSN"`
}
type Scheme struct {