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/filename_database.html | 156 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 www/c3ref/filename_database.html (limited to 'www/c3ref/filename_database.html') diff --git a/www/c3ref/filename_database.html b/www/c3ref/filename_database.html new file mode 100644 index 0000000..8e49c7b --- /dev/null +++ b/www/c3ref/filename_database.html @@ -0,0 +1,156 @@ + + + + + +Translate filenames + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Translate filenames

+
+
+const char *sqlite3_filename_database(sqlite3_filename);
+const char *sqlite3_filename_journal(sqlite3_filename);
+const char *sqlite3_filename_wal(sqlite3_filename);
+
+

+These routines are available to custom VFS implementations for +translating filenames between the main database file, the journal file, +and the WAL file.

+ +

If F is the name of an sqlite database file, journal file, or WAL file +passed by the SQLite core into the VFS, then sqlite3_filename_database(F) +returns the name of the corresponding database file.

+ +

If F is the name of an sqlite database file, journal file, or WAL file +passed by the SQLite core into the VFS, or if F is a database filename +obtained from sqlite3_db_filename(), then sqlite3_filename_journal(F) +returns the name of the corresponding rollback journal file.

+ +

If F is the name of an sqlite database file, journal file, or WAL file +that was passed by the SQLite core into the VFS, or if F is a database +filename obtained from sqlite3_db_filename(), then +sqlite3_filename_wal(F) returns the name of the corresponding +WAL file.

+ +

In all of the above, if F is not the name of a database, journal or WAL +filename passed into the VFS from the SQLite core and F is not the +return value from sqlite3_db_filename(), then the result is +undefined and is likely a memory access violation. +

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

+ -- cgit v1.2.3