Compare commits

...

1 Commits
main ... mika

Author SHA1 Message Date
mfrigo ab33d5788d [+] create branch mika 2023-09-06 13:36:48 +02:00
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ func NewStorage(cfg *viper.Viper) (Storage, error) {
case "mongodb": case "mongodb":
s, err := NewMongoDBStorage(cfg) s, err := NewMongoDBStorage(cfg)
return s, err return s, err
case "psql":
s, err := NewPostgresqlStorage(cfg)
return s, err
default: default:
return nil, fmt.Errorf("storage type %v is not supported", storage_type) return nil, fmt.Errorf("storage type %v is not supported", storage_type)
} }