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_sync_dataonly.html | 155 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 www/c3ref/c_sync_dataonly.html (limited to 'www/c3ref/c_sync_dataonly.html') diff --git a/www/c3ref/c_sync_dataonly.html b/www/c3ref/c_sync_dataonly.html new file mode 100644 index 0000000..e5449c3 --- /dev/null +++ b/www/c3ref/c_sync_dataonly.html @@ -0,0 +1,155 @@ + + + + + +Synchronization Type Flags + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Synchronization Type Flags

+
+
+#define SQLITE_SYNC_NORMAL        0x00002
+#define SQLITE_SYNC_FULL          0x00003
+#define SQLITE_SYNC_DATAONLY      0x00010
+
+

+When SQLite invokes the xSync() method of an +sqlite3_io_methods object it uses a combination of +these integer values as the second argument.

+ +

When the SQLITE_SYNC_DATAONLY flag is used, it means that the +sync operation only needs to flush data to mass storage. Inode +information need not be flushed. If the lower four bits of the flag +equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics. +If the lower four bits equal SQLITE_SYNC_FULL, that means +to use Mac OS X style fullsync instead of fsync().

+ +

Do not confuse the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags +with the PRAGMA synchronous=NORMAL and PRAGMA synchronous=FULL +settings. The synchronous pragma determines when calls to the +xSync VFS method occur and applies uniformly across all platforms. +The SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags determine how +energetic or rigorous or forceful the sync operations are and +only make a difference on Mac OSX for the default SQLite code. +(Third-party VFS implementations might also make the distinction +between SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL, but among the +operating systems natively supported by SQLite, only Mac OSX +cares about the difference.) +

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

+ -- cgit v1.2.3