Fixes in sqlalchemy interface
This commit is contained in:
parent
22b281f2f9
commit
f702f604c7
4 changed files with 18 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class SqlClass:
|
|||
import MySQLdb.cursors
|
||||
SqlClass.cursors_connect=MySQLdb.cursors.DictCursor
|
||||
|
||||
engine=create_engine("mysql+%s://%s:%s@%s/%s?charset=utf8mb4" % (self.connection['db_type'], self.connection['user'], self.connection['password'], self.connection['host'], self.connection['db']))
|
||||
engine=create_engine("mysql+%s://%s:%s@%s/%s?charset=utf8mb4" % (self.connection['db_type'], self.connection['user'], self.connection['password'], self.connection['host'], self.connection['db']), pool_recycle=3600, echo_pool=True)
|
||||
|
||||
except:
|
||||
e = sys.exc_info()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue