def query(self, where='1=1', one=False, limit=None, as_dict=False):
    rows = self.conn.query('select * from {} where {}'.format(self.table_obj, where), echo=False, limit=limit)
    rows = (rows_to_dicts(rows) if as_dict else rows)
    if one:
        return (rows[0] if rows else None)
    else:
        return rows
def query(self, where='1=1', one=False, limit=None, as_dict=False):
    rows = self.conn.query('select * from {} where {}'.format(self.table_obj, where), echo=False, limit=limit)
    rows = (rows_to_dicts(rows) if as_dict else rows)
    if one:
        return (rows[0] if rows else None)
    else:
        return rows