Function mentat::query::q_once [] [src]

pub fn q_once<'sqlite, 'query, T>(
    sqlite: &'sqlite Connection,
    known: Known,
    query: &'query str,
    inputs: T
) -> QueryExecutionResult where
    T: Into<Option<QueryInputs>>, 

Take an EDN query string, a reference to an open SQLite connection, a Mentat schema, and an optional collection of input bindings (which should be keyed by "?varname"), and execute the query immediately, blocking the current thread. Returns a structure that corresponds to the kind of input query, populated with TypedValue instances. The caller is responsible for ensuring that the SQLite connection has an open transaction if isolation is required.