예제 #1
0
 def execute_and_fetchall(self, sql, args=None):
     """Return a list of tuples of all rows."""
     out = super(MysqlConnectorAdaptor, self).execute_and_fetchall(sql, args)
     return [tuple(bytearray_to_str(v) for v in o) for o in out]
예제 #2
0
 def execute_one(self, sql, args=None):
     """Execute sql that returns 1 record, and return the record."""
     out = super(MysqlConnectorAdaptor, self).execute_one(sql, args)
     return tuple(bytearray_to_str(v) for v in out)
예제 #3
0
 def execute_and_fetch_col0(self, sql, args=None):
     """Return a list of values from the first column in the row."""
     out = super(MysqlConnectorAdaptor, self).execute_and_fetch_col0(sql, args)
     return [bytearray_to_str(column) for column in out]
예제 #4
0
 def execute_one(self, sql, args=None):
     out = super(MysqlConnectorAdaptor, self).execute_one(sql, args)
     return tuple(bytearray_to_str(v) for v in out)
예제 #5
0
 def execute_and_fetch_col0(self, sql, args=None):
     out = super(MysqlConnectorAdaptor, self).execute_and_fetch_col0(sql, args)
     return [bytearray_to_str(column) for column in out]
예제 #6
0
 def execute_one(self, sql, args=None):
     """Execute sql that returns 1 record, and return the record."""
     out = super(MysqlConnectorAdaptor, self).execute_one(sql, args)
     return tuple(bytearray_to_str(v) for v in out)
예제 #7
0
 def execute_and_fetchall(self, sql, args=None):
     """Return a list of tuples of all rows."""
     out = super(MysqlConnectorAdaptor,
                 self).execute_and_fetchall(sql, args)
     return [tuple(bytearray_to_str(v) for v in o) for o in out]
예제 #8
0
 def execute_and_fetch_col0(self, sql, args=None):
     """Return a list of values from the first column in the row."""
     out = super(MysqlConnectorAdaptor,
                 self).execute_and_fetch_col0(sql, args)
     return [bytearray_to_str(column) for column in out]
예제 #9
0
 def execute_and_fetch_col0(self, sql, args=None):
     out = super(MysqlConnectorAdaptor, self).execute_and_fetch_col0(sql, args)
     return [bytearray_to_str(column) for column in out]
예제 #10
0
 def execute_one(self, sql, args=None):
     out = super(MysqlConnectorAdaptor, self).execute_one(sql, args)
     return tuple(bytearray_to_str(v) for v in out)