[−][src]Function ejdb_sys::ejdbexport
pub unsafe extern "C" fn ejdbexport(
jb: *mut EJDB,
path: *const c_char,
cnames: *mut TCLIST,
flags: c_int,
log: *mut TCXSTR
) -> bool
Exports database collections data to the specified directory. Database read lock will be taken on each collection.
NOTE: Only data exported as BSONs can be imported with ejdbimport()
@param jb EJDB database handle.
@param path The directory path in which data will be exported.
@param cnames List of collection names to export. NULL
implies that all existing collections will be exported.
@param flags. Can be set to JBJSONEXPORT
in order to export data as JSON files instead exporting into BSONs.
@param log Optional operation string log buffer.
@return on sucess true