add sslmode for postgres

This commit is contained in:
微凉
2022-01-19 09:14:31 +08:00
parent 54272db59c
commit 68f1ccfed4
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ type Database struct {
Name string `json:"name"`
TablePrefix string `json:"table_prefix"`
DBFile string `json:"db_file"`
SslMode string `json:"ssl_mode"`
}
type Scheme struct {
@ -41,6 +42,7 @@ func DefaultConfig() *Config {
Port: 0,
TablePrefix: "x_",
DBFile: "data/data.db",
SslMode: "disable",
},
Cache: CacheConfig{
Expiration: 60,