mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 23:58:44 +05:00
Add multiple DB connections functionality
This commit is contained in:
committed by
Dan Christian Bogos
parent
119481b3d1
commit
5f2b1f67df
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user