Executes the query. Returns the pointer to the query results which is an array of u32. The first element is the length of the array. Subsequent elements are Decl.Index values which are all public declarations.
export fn query_exec(ignore_case: bool) [*]Decl.Index
export fn query_exec(ignore_case: bool) [*]Decl.Index {
const query = query_string.items;
log.debug("querying '{s}'", .{query});
query_exec_fallible(query, ignore_case) catch |err| switch (err) {
error.OutOfMemory => @panic("OOM"),
};
query_results.items[0] = @fromBackingInt(@intCast(query_results.items.len - 1));
return query_results.items.ptr;
}