Function regorust::regoSetQuery

source ยท
pub unsafe extern "C" fn regoSetQuery(
    rego: *mut regoInterpreter,
    query_expr: *const c_char,
) -> regoEnum
Expand description

@brief Sets the query for the interpreter. @details By using this method, a query can be set such that it is included as a default entrypoint in a bundle. @param rego The interpreter @param query_expr A Rego query expression @return REGO_OK if successful, REGO_ERROR if there was a problem parsing the query