dpiSodaColl_save

Function dpiSodaColl_save 

Source
pub unsafe extern "C" fn dpiSodaColl_save(
    coll: *mut dpiSodaColl,
    doc: *mut dpiSodaDoc,
    flags: u32,
    savedDoc: *mut *mut dpiSodaDoc,
) -> c_int
Expand description

Saves a document into the collection. This method is equivalent to dpiSodaColl_insertOne() 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 19.9 or higher to be used in addition to the normal SODA requirements.

The function returns DPI_SUCCESS for success and DPI_FAILURE for failure.