aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2021-04-21 20:52:17 +0000
committerdan <Dan Kennedy>2021-04-21 20:52:17 +0000
commita23a873fbb02bdb20923aae7d2476f07d4245bc3 (patch)
treef4b23113105b11a0e06da5f56a145cc0f2e24521 /src/vdbeapi.c
parent7437c25b63be5cdf678dc5d2f25d1837c126c8b7 (diff)
downloadsqlite-a23a873fbb02bdb20923aae7d2476f07d4245bc3.tar.gz
sqlite-a23a873fbb02bdb20923aae7d2476f07d4245bc3.zip
Add the experimental sqlite3session_changeset_size() API.
FossilOrigin-Name: b5564a6fd54875db1de884fdc0e5eeabcd6aa5595ad03a8a60843503e830a2d8
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index ba3bdf6a5..b21634dc8 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -1907,6 +1907,17 @@ int sqlite3_preupdate_depth(sqlite3 *db){
#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
/*
+** This function is designed to be called from within a pre-update callback
+** only.
+*/
+int sqlite3_preupdate_blobwrite(sqlite3 *db){
+ PreUpdate *p = db->pPreUpdate;
+ return (p ? p->iBlobWrite : -1);
+}
+#endif
+
+#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
+/*
** This function is called from within a pre-update callback to retrieve
** a field of the row currently being updated or inserted.
*/