[−][src]Function ejdb_sys::ejdbqrydistinct
pub unsafe extern "C" fn ejdbqrydistinct(
jcoll: *mut EJCOLL,
fpath: *const c_char,
qobj: *mut bson,
orqobjs: *mut bson,
orqobjsnum: c_int,
count: *mut u32,
log: *mut TCXSTR
) -> *mut bson
Provides 'distinct' operation over query
(http://docs.mongodb.org/manual/reference/method/db.collection.distinct/).
@param jcoll EJDB database collection handle. @param fpath Field path to collect distinct values from. @param qobj Main BSON query object. @param orqobjs Array of additional OR query objects (joined with OR predicate). @param orqobjsnum Number of OR query objects.
NOTE: Queries with update instruction not supported.
@return Unique values by specified path and query (as BSON array)