Class that wraps MySQLdb functions that auto reconnects
thus (hopefully) preventing the frustrating
“server has gone away” error. Also adds helpful
helper functions.
-
close()
-
connect()
-
cursor(cursorclass=<class 'MySQLdb.cursors.Cursor'>)
-
list_tables()
-
query(sql, args=(), one=False, large=False)
-
query_many(sql, args, large)
-
query_one(sql, args)