sqlite_wasm_rs::c

Function sqlite3_serialize

Source
pub unsafe fn sqlite3_serialize(
    db: *mut sqlite3,
    schema: *const c_char,
    piSize: *mut sqlite3_int64,
    flags: c_uint,
) -> *mut c_uchar
Expand description

Returns a pointer to memory that is a serialization of the schema database on database connection db. If piSize is not a NULL pointer, then the size of the database in bytes is written into *piSize.

For an ordinary on-disk database file, the serialization is just a copy of the disk file. For an in-memory database or a "TEMP" database, the serialization is the same sequence of bytes which would be written to disk if that database where backed up to disk.

See https://www.sqlite.org/c3ref/serialize.html