# Class k.d.s.SQLAlchemyQueryExecuter(QueryExecuter):

Part of kiwi.db.sqlalch View In Hierarchy

No class docstring

Method | __init__ | Undocumented
Method | set_table | Sets the SQLObject table/object for this executer
Method | add_query_callback | Adds a generic query callback
Method | add_filter_query_callback | Adds a query callback for the filter search_filter
Method | set_query | Overrides the default query mechanism.
Method | search | Execute a search.
Method | _default_query | Undocumented
Method | _construct_state_query | Undocumented
Method | _parse_number_state | Undocumented
Method | _parse_string_state | Undocumented
Method | _parse_date_state | Undocumented
Method | _parse_date_interval_state | Undocumented

Inherited from QueryExecuter:

Method | set_filter_columns | Undocumented
Method | set_limit | Set the maximum number of result items to return in a search query.
Method | get_limit | Undocumented

def __init__(self, session):
overrides kiwi.db.query.QueryExecuter.__init__
Undocumented
def set_table(self, table):
Sets the SQLObject table/object for this executer

Parameters | table | a SQLObject subclass

def add_query_callback(self, callback):
Adds a generic query callback

Parameters | callback | a callable

def add_filter_query_callback(self, search_filter, callback):
Adds a query callback for the filter search_filter

Parameters | search_filter | a search filter
| callback | a callable

def set_query(self, callback):
Overrides the default query mechanism.

Parameters | callback | a callable which till take two arguments: (query, connection)

def search(self, states):
overrides kiwi.db.query.QueryExecuter.search
Execute a search.

Parameters | states |

def _default_query(self, query):
Undocumented
def _construct_state_query(self, table, state, columns):
Undocumented
def _parse_number_state(self, state, table_field):
Undocumented
def _parse_string_state(self, state, table_field):
Undocumented
def _parse_date_state(self, state, table_field):
Undocumented
def _parse_date_interval_state(self, state, table_field):
Undocumented