aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-08-16 15:27:49 +0000
committerdrh <>2023-08-16 15:27:49 +0000
commit0d83c71b342bf6a68e5504b0cc0300b067c2aabb (patch)
tree58ae9d8cfc1566238ee9edb43af9d2c91b268ce1 /src
parent7309b50fbccc437e41f4fca205522f491c152024 (diff)
downloadsqlite-0d83c71b342bf6a68e5504b0cc0300b067c2aabb.tar.gz
sqlite-0d83c71b342bf6a68e5504b0cc0300b067c2aabb.zip
Make sqlite3_stmt_explain() accessible to loadable extensions.
FossilOrigin-Name: a237a31ff4a7cd3dc744af1e1ebb9466e42eebafa31c1b5c0027cbaee9babc9b
Diffstat (limited to 'src')
-rw-r--r--src/loadext.c4
-rw-r--r--src/sqlite3ext.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/loadext.c b/src/loadext.c
index 4fc1352e0..e792fa5a9 100644
--- a/src/loadext.c
+++ b/src/loadext.c
@@ -512,7 +512,9 @@ static const sqlite3_api_routines sqlite3Apis = {
/* Version 3.40.0 and later */
sqlite3_value_encoding,
/* Version 3.41.0 and later */
- sqlite3_is_interrupted
+ sqlite3_is_interrupted,
+ /* Version 3.43.0 and later */
+ sqlite3_stmt_explain
};
/* True if x is the directory separator character
diff --git a/src/sqlite3ext.h b/src/sqlite3ext.h
index 19e030028..711638099 100644
--- a/src/sqlite3ext.h
+++ b/src/sqlite3ext.h
@@ -361,6 +361,8 @@ struct sqlite3_api_routines {
int (*value_encoding)(sqlite3_value*);
/* Version 3.41.0 and later */
int (*is_interrupted)(sqlite3*);
+ /* Version 3.43.0 and later */
+ int (*stmt_explain)(sqlite3_stmt*,int);
};
/*
@@ -689,6 +691,8 @@ typedef int (*sqlite3_loadext_entry)(
#define sqlite3_value_encoding sqlite3_api->value_encoding
/* Version 3.41.0 and later */
#define sqlite3_is_interrupted sqlite3_api->is_interrupted
+/* Version 3.43.0 and later */
+#define sqlite3_stmt_explain sqlite3_api->stmt_explain
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)