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_name.html | 146 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 www/c3ref/db_name.html (limited to 'www/c3ref/db_name.html') diff --git a/www/c3ref/db_name.html b/www/c3ref/db_name.html new file mode 100644 index 0000000..65d2954 --- /dev/null +++ b/www/c3ref/db_name.html @@ -0,0 +1,146 @@ + + + + + +Return The Schema Name For A Database Connection + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Return The Schema Name For A Database Connection

+
+
+const char *sqlite3_db_name(sqlite3 *db, int N);
+
+

+The sqlite3_db_name(D,N) interface returns a pointer to the schema name +for the N-th database on database connection D, or a NULL pointer of N is +out of range. An N value of 0 means the main database file. An N of 1 is +the "temp" schema. Larger values of N correspond to various ATTACH-ed +databases.

+ +

Space to hold the string that is returned by sqlite3_db_name() is managed +by SQLite itself. The string might be deallocated by any operation that +changes the schema, including ATTACH or DETACH or calls to +sqlite3_serialize() or sqlite3_deserialize(), even operations that +occur on a different thread. Applications that need to +remember the string long-term should make their own copy. Applications that +are accessing the same database connection simultaneously on multiple +threads should mutex-protect calls to this API and should make their own +private copy of the result prior to releasing the mutex. +

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

+ -- cgit v1.2.3