|
@ -3,7 +3,7 @@ |
|
|
# |
|
|
# |
|
|
# mysqlred.py |
|
|
# mysqlred.py |
|
|
# |
|
|
# |
|
|
# Copyright 2015 GOLDERWEB – Jonathan Golder <jonathan@golderweb.de> |
|
|
# Copyright 2017 Jonathan Golder <jonathan@golderweb.de> |
|
|
# |
|
|
# |
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# it under the terms of the GNU General Public License as published by |
|
@ -51,10 +51,11 @@ url = URL( "mysql+pymysql", |
|
|
password=config.db_password, |
|
|
password=config.db_password, |
|
|
host=config.db_hostname, |
|
|
host=config.db_hostname, |
|
|
port=config.db_port, |
|
|
port=config.db_port, |
|
|
database=config.db_username + jogobot.config['db_suffix'], |
|
|
database=( config.db_username + |
|
|
|
|
|
jogobot.config['redundances']['db_suffix'] ), |
|
|
query={'charset': 'utf8'} ) |
|
|
query={'charset': 'utf8'} ) |
|
|
|
|
|
|
|
|
engine = create_engine(url, echo=True) |
|
|
engine = create_engine(url, echo=False) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Session = sessionmaker(bind=engine) |
|
|
Session = sessionmaker(bind=engine) |
|
|