support pgsql model generation
This commit is contained in:
@@ -28,6 +28,8 @@ func NewDatabase(config *config.Config) (*gorm.DB, error) {
|
||||
return NewMySQL(config.Database.MySQL)
|
||||
case DriverSQLite:
|
||||
return NewSQLite(config.Database.SQLite)
|
||||
case DriverPostgres:
|
||||
return NewPostgres(config.Database.PostgreSQL)
|
||||
}
|
||||
return nil, errors.New("failed to connect to db")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user