From 63847496f14c813a5d80efd5b7de0f1294ffe1e3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 16:07:11 +0200 Subject: Adding upstream version 3.45.1. Signed-off-by: Daniel Baumann --- www/c3ref/c_deserialize_freeonclose.html | 150 +++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 www/c3ref/c_deserialize_freeonclose.html (limited to 'www/c3ref/c_deserialize_freeonclose.html') diff --git a/www/c3ref/c_deserialize_freeonclose.html b/www/c3ref/c_deserialize_freeonclose.html new file mode 100644 index 0000000..bfd2399 --- /dev/null +++ b/www/c3ref/c_deserialize_freeonclose.html @@ -0,0 +1,150 @@ + + + + + +Flags for sqlite3_deserialize() + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Flags for sqlite3_deserialize()

+
+
+#define SQLITE_DESERIALIZE_FREEONCLOSE 1 /* Call sqlite3_free() on close */
+#define SQLITE_DESERIALIZE_RESIZEABLE  2 /* Resize using sqlite3_realloc64() */
+#define SQLITE_DESERIALIZE_READONLY    4 /* Database is read-only */
+
+

+The following are allowed values for 6th argument (the F argument) to +the sqlite3_deserialize(D,S,P,N,M,F) interface.

+ +

The SQLITE_DESERIALIZE_FREEONCLOSE means that the database serialization +in the P argument is held in memory obtained from sqlite3_malloc64() +and that SQLite should take ownership of this memory and automatically +free it when it has finished using it. Without this flag, the caller +is responsible for freeing any dynamically allocated memory.

+ +

The SQLITE_DESERIALIZE_RESIZEABLE flag means that SQLite is allowed to +grow the size of the database using calls to sqlite3_realloc64(). This +flag should only be used if SQLITE_DESERIALIZE_FREEONCLOSE is also used. +Without this flag, the deserialized database cannot increase in size beyond +the number of bytes specified by the M parameter.

+ +

The SQLITE_DESERIALIZE_READONLY flag means that the deserialized database +should be treated as read-only. +

See also lists of + Objects, + Constants, and + Functions.

+ -- cgit v1.2.3