mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Added MySQL Location as an option for storDB
This commit is contained in:
committed by
Dan Christian Bogos
parent
95c7dbf114
commit
6aa28fc9f5
@@ -113,7 +113,8 @@ func NewStorDBConn(dbType, host, port, name, user, pass, marshaler string,
|
||||
if connMaxLifetime, err = utils.IfaceAsTInt64(opts[utils.ConnMaxLifetimeCfg]); err != nil {
|
||||
return
|
||||
}
|
||||
db, err = NewMySQLStorage(host, port, name, user, pass, int(maxConn), int(maxIdleConn), int(connMaxLifetime))
|
||||
db, err = NewMySQLStorage(host, port, name, user, pass, int(maxConn), int(maxIdleConn),
|
||||
int(connMaxLifetime), utils.IfaceAsString(opts[utils.MysqlLocation]))
|
||||
case utils.INTERNAL:
|
||||
db = NewInternalDB(stringIndexedFields, prefixIndexedFields, false)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user