database configuration

This commit is contained in:
2021-01-15 17:19:18 +01:00
parent 4dad188a07
commit 8c1730389c
4 changed files with 24 additions and 9 deletions

View File

@ -2,15 +2,15 @@ import mariadb
pool = None
def createConnectionPool():
def createConnectionPool(config):
global pool
pool = mariadb.ConnectionPool(
user = 'heroes',
password = 'test123',
host = '172.16.10.18',
database = 'heroes',
pool_name = 'wep-app',
user = config['user'],
password = config['password'],
host = config['host'],
database = config['database'],
pool_name = 'heroes-wep-app',
pool_size = 5
)