pub unsafe extern "C" fn dpiSodaColl_saveWithOptions(
coll: *mut dpiSodaColl,
doc: *mut dpiSodaDoc,
options: *mut dpiSodaOperOptions,
flags: u32,
savedDoc: *mut *mut dpiSodaDoc,
) -> c_intExpand description
Saves a document into the collection. This method is equivalent to
dpiSodaColl_insertOneWithOptions() except that if client-assigned
keys are used, and the document with the specified key already exists in
the collection, it will be replaced with the input document.
This method requires Oracle Client 21.3 or higher to be used in addition to the normal SODA requirements (also available in Oracle Client 19 from 19.11).
The function returns DPI_SUCCESS for success and DPI_FAILURE for failure.