aboutsummaryrefslogtreecommitdiff
path: root/src/sqlite3ext.h
diff options
context:
space:
mode:
authordrh <>2022-05-17 14:59:05 +0000
committerdrh <>2022-05-17 14:59:05 +0000
commitff16267d7da5ddbf1edb683d4524e5f8d7d7ae11 (patch)
treec68c01513cf1a5ef79915a7ea6418c9808f09df1 /src/sqlite3ext.h
parentc7d7ebd75587bec2227befda16c298bf175b5fa9 (diff)
downloadsqlite-ff16267d7da5ddbf1edb683d4524e5f8d7d7ae11.tar.gz
sqlite-ff16267d7da5ddbf1edb683d4524e5f8d7d7ae11.zip
Add the sqlite3_db_name() interface.
FossilOrigin-Name: 2ad152236c408cbb1f942b221de4bf3cbaa9c35313d7eb07a63f46b6040fc981
Diffstat (limited to 'src/sqlite3ext.h')
-rw-r--r--src/sqlite3ext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sqlite3ext.h b/src/sqlite3ext.h
index a75dd496e..2cdd0e429 100644
--- a/src/sqlite3ext.h
+++ b/src/sqlite3ext.h
@@ -356,6 +356,7 @@ struct sqlite3_api_routines {
sqlite3_int64,sqlite3_int64,unsigned);
unsigned char *(*serialize)(sqlite3*,const char *,sqlite3_int64*,
unsigned int);
+ const char *(*db_name)(sqlite3*,int);
};
/*
@@ -674,10 +675,12 @@ typedef int (*sqlite3_loadext_entry)(
#define sqlite3_vtab_in sqlite3_api->vtab_in
#define sqlite3_vtab_in_first sqlite3_api->vtab_in_first
#define sqlite3_vtab_in_next sqlite3_api->vtab_in_next
+/* Version 3.39.0 and later */
#ifndef SQLITE_OMIT_DESERIALIZE
#define sqlite3_deserialize sqlite3_api->deserialize
#define sqlite3_serialize sqlite3_api->serialize
#endif
+#define sqlite3_db_name sqlite3_api->db_name
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)