Skip to main content

c4db_getCollection

Function c4db_getCollection 

Source
pub unsafe extern "C" fn c4db_getCollection(
    db: *mut C4Database,
    spec: C4CollectionSpec,
    outError: *mut C4Error,
) -> *mut C4Collection
Expand description

Returns the existing collection with the given name & scope, or NULL if it doesn’t exist. @note Be sure to read C4Collection Lifespan in c4Collection.h.