Function linkspace::query::lk_query_push
source · pub fn lk_query_push(
query: Query,
field: &str,
test: &str,
val: &[u8]
) -> LkResult<Query>
Expand description
Add a single statement to a Query, potentially skipping an encode step. i.e. fast path for adding a single statement - lk_query_parse(q,“{field}:{op}:{lk_encode(bytes)}”)
Also accepts options in the form lk_query_push(q,"","mode",b"tree-asc")
.
Unlike predicates, options don’t join and instead are pushed to the front of the query;