[−][src]Function ejdb_sys::ejdbqryexecute
pub unsafe extern "C" fn ejdbqryexecute(
jcoll: *mut EJCOLL,
q: *const EJQ,
count: *mut u32,
qflags: c_int,
log: *mut TCXSTR
) -> EJQRESULT
Execute the query against EJDB collection.
It is better to execute update queries with specified JBQRYCOUNT
control
flag avoid unnecessarily rows fetching.
@param jcoll EJDB database
@param q Query handle created with ejdbcreatequery()
@param count Output count pointer. Result set size will be stored into it.
@param qflags Execution flag.
* JBQRYCOUNT
The only count of matching records will be computed
without resultset, this operation is analog of count(*)
in SQL and can be faster than operations with resultsets.
@param log Optional extended string to collect debug information during query execution, can be NULL.
@return TCLIST with matched bson records data.
If (qflags & JBQRYCOUNT) then NULL will be returned
and only count reported.