dpiSodaDb_createDocument

Function dpiSodaDb_createDocument 

Source
pub unsafe extern "C" fn dpiSodaDb_createDocument(
    db: *mut dpiSodaDb,
    key: *const c_char,
    keyLength: u32,
    content: *const c_char,
    contentLength: u32,
    mediaType: *const c_char,
    mediaTypeLength: u32,
    flags: u32,
    doc: *mut *mut dpiSodaDoc,
) -> c_int
Expand description

Creates a SODA document that can later be inserted into a collection or used to replace an existing document in a collection. This method should be used when the content is binary or encoded text.

The function returns DPI_SUCCESS for success and DPI_FAILURE for failure.