Constraint = Constraint
Literal = Literal
- def __init__(self, *args, **kwargs):
- self._db_con = MySQLdb.connect(*args, **kwargs)
- self._db_con_autocommit = MySQLdb.connect(*args, **kwargs)
+ def __init__(self, host="localhost", user=None, passwd=None, *args, **kwargs):
+ self._db_con = MySQLdb.connect(host=host, user=user, passwd=passwd)
+ self._db_con_autocommit = MySQLdb.connect(host=host, user=user, passwd=passwd)
+ super(Connection, self).__init__(*args, **kwargs)
def query(self, sql, db=None):
if db is None: