pub unsafe extern "C" fn dpiSodaDb_createCollection(
db: *mut dpiSodaDb,
name: *const c_char,
nameLength: u32,
metadata: *const c_char,
metadataLength: u32,
flags: u32,
coll: *mut *mut dpiSodaColl,
) -> c_intExpand description
Creates a new SODA collection if a collection by that name does not exist. If a collection by that name already exists, the collection is opened if the metadata of the collection is equivalent to the supplied metadata; otherwise, an error is returned.
The function returns DPI_SUCCESS for success and DPI_FAILURE for failure.
NOTE: the creation of the collection is performed using an autonomous transaction. Any current transaction is left unchanged.