Enabling postgres config within storage_utils

This commit is contained in:
DanB
2014-11-14 20:01:38 +01:00
parent edd8d5540f
commit f31ea16099
2 changed files with 4 additions and 4 deletions

View File

@@ -17,9 +17,9 @@
# accountdb_name = 11 # Accounting subsystem database name to connect to.
# accountdb_user = # Accounting subsystem username to use when connecting to database.
# accountdb_passwd = # Accounting subsystem password to use when connecting to database.
# stordb_type = mysql # Stor database type to use: <mysql>
# stordb_type = mysql # Stor database type to use: <mysql|postgres>
# stordb_host = 127.0.0.1 # The host to connect to. Values that start with / are for UNIX domain sockets.
# stordb_port = 3306 # The port to reach the logdb.
# stordb_port = 3306 # The port to reach the stordb.
# stordb_name = cgrates # The name of the log database to connect to.
# stordb_user = cgrates # Username to use when connecting to stordb.
# stordb_passwd = CGRateS.org # Password to use when connecting to stordb.

View File

@@ -103,9 +103,9 @@ func ConfigureLogStorage(db_type, host, port, name, user, pass, marshaler string
d, err = NewRedisStorage(host, db_nb, pass, marshaler)
case utils.MONGO:
d, err = NewMongoStorage(host, port, name, user, pass)
case utils.POSTGRES:
d, err = NewPostgresStorage(host, port, name, user, pass)
*/
case utils.POSTGRES:
d, err = NewPostgresStorage(host, port, name, user, pass, maxConn, maxIdleConn)
case utils.MYSQL:
d, err = NewMySQLStorage(host, port, name, user, pass, maxConn, maxIdleConn)
default: