support pgsql model generation

This commit is contained in:
rogee
2023-03-01 09:03:40 +08:00
parent aceac5d8eb
commit bdee945461
5 changed files with 84 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ ShowLine = true
LogInConsole = true
[Database]
Driver = "mysql"
Driver = "postgres"
[Database.MySQL]
Host = "10.47.119.226"
@@ -102,6 +102,19 @@ MaxIdleConns = 10
MaxOpenConns = 200
Engine = "InnoDB"
[Database.PostgreSQL]
Host = "10.95.31.212"
Port = 5442
Database = "cspm"
Username = "postgres"
Password = "zHTz7H6S9WJQK7Y0"
Prefix = ""
TimeZone = "Asia/Shanghai"
SslMode = "disable"
Singular = false
MaxIdleConns = 10
MaxOpenConns = 200
[Database.SQLite]
File = "sqlite.db"