Add multiple DB connections functionality

This commit is contained in:
arberkatellari
2025-10-16 15:54:55 +02:00
committed by Dan Christian Bogos
parent 119481b3d1
commit 5f2b1f67df
109 changed files with 3361 additions and 4613 deletions

View File

@@ -32,7 +32,7 @@ type PostgresStorage struct {
SQLStorage
}
// NewPostgresStorage returns the posgres storDB
// NewPostgresStorage returns the posgres DB
func NewPostgresStorage(host, port, name, user, password,
sslmode, sslcert, sslkey, sslpassword, sslcertmode, sslrootcert string,
maxConn, maxIdleConn, sqlLogLevel int, connMaxLifetime time.Duration) (*SQLStorage, error) {
@@ -73,7 +73,7 @@ func NewPostgresStorage(host, port, name, user, password,
return &SQLStorage{
DB: pgStor.DB,
db: pgStor.db,
StorDB: pgStor,
DataDB: pgStor,
SQLImpl: pgStor,
}, nil
}