Skip to main content

query_rows

Function query_rows 

Source
pub fn query_rows(
    query: &str,
    limit: usize,
    live: &BTreeSet<String>,
) -> Result<Vec<WikiRow>>
Expand description

One page of the index, newest first or best match first.

live is the set of session ids this daemon still holds, which is what decides whether a Mjolnir row names a session the user can simply resume. Runs SQLite work, so callers on the async runtime wrap it in spawn_blocking.