agenda postgresql

This commit is contained in:
2023-05-09 10:42:52 +02:00
parent ef3add576f
commit f06ed52547
5 changed files with 904 additions and 0 deletions

View File

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