Exemplo n.º 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]
Exemplo n.º 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)
Exemplo n.º 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]
Exemplo n.º 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)
Exemplo n.º 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]
Exemplo n.º 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)
Exemplo n.º 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]
Exemplo n.º 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]
Exemplo n.º 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]
Exemplo n.º 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)