File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,6 @@ const (
1313 DbTypeArangodb = "arangodb"
1414 // DbTypeMongodb is the mongodb database type
1515 DbTypeMongodb = "mongodb"
16+ // DbTypeYugabyte is the yugabyte database type
17+ DbTypeYugabyte = "yugabyte"
1618)
Original file line number Diff line number Diff line change @@ -41,9 +41,8 @@ func NewProvider() (*provider, error) {
4141 TablePrefix : models .Prefix ,
4242 },
4343 }
44-
4544 switch envstore .EnvInMemoryStoreObj .GetStringStoreEnvVariable (constants .EnvKeyDatabaseType ) {
46- case constants .DbTypePostgres :
45+ case constants .DbTypePostgres , constants . DbTypeYugabyte :
4746 sqlDB , err = gorm .Open (postgres .Open (envstore .EnvInMemoryStoreObj .GetStringStoreEnvVariable (constants .EnvKeyDatabaseURL )), ormConfig )
4847 break
4948 case constants .DbTypeSqlite :
You can’t perform that action at this time.
0 commit comments