aboutsummaryrefslogtreecommitdiff
path: root/src/sqlite3ext.h
diff options
context:
space:
mode:
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)