customSelect method

Selectable<QueryRow> customSelect(
  1. String query, {
  2. List<Variable> variables = const [],
  3. Set<ResultSetImplementation> readsFrom = const {},
})

Creates a custom select statement from the given sql query. To run the query once, use Selectable.get. For an auto-updating streams, set the set of tables the ready readsFrom and use Selectable.watch. If you know the query will never emit more than one row, you can also use getSingle and SelectableUtils.watchSingle which return the item directly without wrapping it into a list.

If you use variables in your query (for instance with "?"), they will be bound to the variables you specify on this query.

Implementation

Selectable<QueryRow> customSelect(String query,
    {List<Variable> variables = const [],
    Set<ResultSetImplementation> readsFrom = const {}}) {
  return CustomSelectStatement(query, variables, readsFrom, resolvedEngine);
}