From 18657a960e125336f704ea058e25c27bd3900dcb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:28:19 +0200 Subject: Adding upstream version 3.40.1. Signed-off-by: Daniel Baumann --- www/c3ref/db_filename.html | 156 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 www/c3ref/db_filename.html (limited to 'www/c3ref/db_filename.html') diff --git a/www/c3ref/db_filename.html b/www/c3ref/db_filename.html new file mode 100644 index 0000000..850e7dd --- /dev/null +++ b/www/c3ref/db_filename.html @@ -0,0 +1,156 @@ + + + + + +Return The Filename For A Database Connection + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Return The Filename For A Database Connection

+
+
+sqlite3_filename sqlite3_db_filename(sqlite3 *db, const char *zDbName);
+
+

+The sqlite3_db_filename(D,N) interface returns a pointer to the filename +associated with database N of connection D. +If there is no attached database N on the database +connection D, or if database N is a temporary or in-memory database, then +this function will return either a NULL pointer or an empty string.

+ +

The string value returned by this routine is owned and managed by +the database connection. The value will be valid until the database N +is DETACH-ed or until the database connection closes.

+ +

The filename returned by this function is the output of the +xFullPathname method of the VFS. In other words, the filename +will be an absolute pathname, even if the filename used +to open the database originally was a URI or relative pathname.

+ +

If the filename pointer returned by this routine is not NULL, then it +can be used as the filename input parameter to these routines: +

+

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

+ -- cgit v1.2.3