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/wal_checkpoint.html | 146 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 www/c3ref/wal_checkpoint.html (limited to 'www/c3ref/wal_checkpoint.html') diff --git a/www/c3ref/wal_checkpoint.html b/www/c3ref/wal_checkpoint.html new file mode 100644 index 0000000..24ae711 --- /dev/null +++ b/www/c3ref/wal_checkpoint.html @@ -0,0 +1,146 @@ + + + + + +Checkpoint a database + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Checkpoint a database

+
+
+int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);
+
+

+The sqlite3_wal_checkpoint(D,X) is equivalent to +sqlite3_wal_checkpoint_v2(D,X,SQLITE_CHECKPOINT_PASSIVE,0,0).

+ +

In brief, sqlite3_wal_checkpoint(D,X) causes the content in the +write-ahead log for database X on database connection D to be +transferred into the database file and for the write-ahead log to +be reset. See the checkpointing documentation for addition +information.

+ +

This interface used to be the only way to cause a checkpoint to +occur. But then the newer and more powerful sqlite3_wal_checkpoint_v2() +interface was added. This interface is retained for backwards +compatibility and as a convenience for applications that need to manually +start a callback but which do not need the full power (and corresponding +complication) of sqlite3_wal_checkpoint_v2(). +

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

+ -- cgit v1.2.3