File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,6 @@ const (
2121 DbTypeCassandraDB = "cassandradb"
2222 // DbTypeScyllaDB is the scylla database type
2323 DbTypeScyllaDB = "scylladb"
24+ // DbTypeCockroachDB is the cockroach database type
25+ DbTypeCockroachDB = "cockroachdb"
2426)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ func NewProvider() (*provider, error) {
4646 dbURL := memorystore .RequiredEnvStoreObj .GetRequiredEnv ().DatabaseURL
4747
4848 switch dbType {
49- case constants .DbTypePostgres , constants .DbTypeYugabyte :
49+ case constants .DbTypePostgres , constants .DbTypeYugabyte , constants . DbTypeCockroachDB :
5050 sqlDB , err = gorm .Open (postgres .Open (dbURL ), ormConfig )
5151 case constants .DbTypeSqlite :
5252 sqlDB , err = gorm .Open (sqlite .Open (dbURL ), ormConfig )
You can’t perform that action at this time.
0 commit comments