Function mentat_ffi::query_builder_execute_scalar [] [src]

#[no_mangle]
pub unsafe extern "C" fn query_builder_execute_scalar(
    query_builder: *mut QueryBuilder,
    error: *mut ExternError
) -> *mut Binding

Executes a query and returns the results as a Scalar.

Panics

If the find set of the query executed is not structured [:find ?foo . :where ...].

Safety

Callers are responsible for managing the memory for the return value. A destructor typed_value_destroy is provided for releasing the memory for this pointer type.