aboutsummaryrefslogtreecommitdiff
path: root/ext/session/sqlite3session.h
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 /ext/session/sqlite3session.h
parent7437c25b63be5cdf678dc5d2f25d1837c126c8b7 (diff)
downloadsqlite-a23a873fbb02bdb20923aae7d2476f07d4245bc3.tar.gz
sqlite-a23a873fbb02bdb20923aae7d2476f07d4245bc3.zip
Add the experimental sqlite3session_changeset_size() API.
FossilOrigin-Name: b5564a6fd54875db1de884fdc0e5eeabcd6aa5595ad03a8a60843503e830a2d8
Diffstat (limited to 'ext/session/sqlite3session.h')
-rw-r--r--ext/session/sqlite3session.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/session/sqlite3session.h b/ext/session/sqlite3session.h
index 9ebf360ea..78d25ba0f 100644
--- a/ext/session/sqlite3session.h
+++ b/ext/session/sqlite3session.h
@@ -325,6 +325,17 @@ int sqlite3session_changeset(
/*
** CAPI3REF: Load The Difference Between Tables Into A Session
+** METHOD: sqlite3session_changeset_size()
+**
+** This function returns an upper limit, in bytes, of the size of the
+** changeset that might be produced if sqlite3session_changeset() were
+** called. The final changeset size might be equal to or smaller than
+** the size in bytes returned by this function.
+*/
+sqlite3_int64 sqlite3session_changeset_size(sqlite3_session *pSession);
+
+/*
+** CAPI3REF: Load The Difference Between Tables Into A Session
** METHOD: sqlite3_session
**
** If it is not already attached to the session object passed as the first