diff options
author | dan <Dan Kennedy> | 2021-04-22 17:55:42 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2021-04-22 17:55:42 +0000 |
commit | a5b51b8715412c129eb243869063c87d95490956 (patch) | |
tree | 8d49543c3188432670c968101cfccfcdd8cdca6f /src/sqlite.h.in | |
parent | 65b930553d0993898c870a671aabb905aea6adb6 (diff) | |
parent | 6d29a4fe5be41d63d7c2ba8a82ad9777a4acc39f (diff) | |
download | sqlite-a5b51b8715412c129eb243869063c87d95490956.tar.gz sqlite-a5b51b8715412c129eb243869063c87d95490956.zip |
Add the experimental sqlite3session_changeset_size() API.
FossilOrigin-Name: 3de544d495fee553d95fde3fb656745d633138115d25ed39760a1ea7c8c3fae6
Diffstat (limited to 'src/sqlite.h.in')
-rw-r--r-- | src/sqlite.h.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 9085dc882..56f23f2b0 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -9546,6 +9546,15 @@ int sqlite3_db_cacheflush(sqlite3*); ** triggers; or 2 for changes resulting from triggers called by top-level ** triggers; and so forth. ** +** When the [sqlite3_blob_write()] API is used to update a blob column, +** the pre-update hook is invoked with SQLITE_DELETE. This is because the +** in this case the new values are not available. In this case, when a +** callback made with op==SQLITE_DELETE is actuall a write using the +** sqlite3_blob_write() API, the [sqlite3_preupdate_blobwrite()] returns +** the index of the column being written. In other cases, where the +** pre-update hook is being invoked for some other reason, including a +** regular DELETE, sqlite3_preupdate_blobwrite() returns -1. +** ** See also: [sqlite3_update_hook()] */ #if defined(SQLITE_ENABLE_PREUPDATE_HOOK) @@ -9566,6 +9575,7 @@ int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **); int sqlite3_preupdate_count(sqlite3 *); int sqlite3_preupdate_depth(sqlite3 *); int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **); +int sqlite3_preupdate_blobwrite(sqlite3 *); #endif /* |