SQLITE3_DESERIALIZE(3) | Library Functions Manual | SQLITE3_DESERIALIZE(3) |
sqlite3_deserialize
—
sqlite3_deserialize
(sqlite3 *db,
const char *zSchema, unsigned char
*pData, sqlite3_int64 szDb,
sqlite3_int64 szBuf, unsigned mFlags
);
If the SQLITE_DESERIALIZE_FREEONCLOSE bit is set in F, then SQLite will invoke sqlite3_free() on the serialization buffer when the database connection closes. If the SQLITE_DESERIALIZE_RESIZEABLE bit is set, then SQLite will try to increase the buffer size using sqlite3_realloc64() if writes on the database cause it to grow larger than M bytes.
The sqlite3_deserialize() interface will fail with SQLITE_BUSY if the database is currently in a read transaction or is involved in a backup operation.
If sqlite3_deserialize(D,S,P,N,M,F) fails for any reason and if the SQLITE_DESERIALIZE_FREEONCLOSE bit is set in argument F, then sqlite3_free() is invoked on argument P prior to returning.
This interface is only available if SQLite is compiled with the SQLITE_ENABLE_DESERIALIZE option.
December 19, 2018 | NetBSD 9.2 |