aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/fossildelta.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-03-02 20:09:35 +0000
committerdrh <drh@noemail.net>2019-03-02 20:09:35 +0000
commit75db74fdaeaeef414793f03c0fea93fb6ed8c92b (patch)
tree16c5b1f6149ed0db26c3960ba48b6b78c624be8f /ext/misc/fossildelta.c
parente22976c5357fb6501cb0dd40220b8d48bd9295bb (diff)
downloadsqlite-75db74fdaeaeef414793f03c0fea93fb6ed8c92b.tar.gz
sqlite-75db74fdaeaeef414793f03c0fea93fb6ed8c92b.zip
Improved comments on the fossildelta.c extension.
FossilOrigin-Name: d7d23f0450d659b2c7df34e4df8623ca7b6fe3bd19422e3e9234515214ae8510
Diffstat (limited to 'ext/misc/fossildelta.c')
-rw-r--r--ext/misc/fossildelta.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/ext/misc/fossildelta.c b/ext/misc/fossildelta.c
index b58d358b5..7e78f6fb1 100644
--- a/ext/misc/fossildelta.c
+++ b/ext/misc/fossildelta.c
@@ -10,7 +10,25 @@
**
******************************************************************************
**
-** This SQLite extension implements the delta functions used by Fossil.
+** This SQLite extension implements the delta functions used by the RBU
+** extension. Three scalar functions and one table-valued function are
+** implemented here:
+**
+** delta_apply(X,D) -- apply delta D to file X and return the result
+** delta_create(X,Y) -- compute and return a delta that carries X into Y
+** delta_output_size(D) -- blob size in bytes output from applying delta D
+** delta_parse(D) -- returns rows describing delta D
+**
+** The delta format is the Fossil delta format, described in a comment
+** on the delete_create() function implementation below, and also at
+**
+** https://www.fossil-scm.org/fossil/doc/trunk/www/delta_format.wiki
+**
+** This delta format is used by the RBU extension, which is the main
+** reason that these routines are included in the extension library.
+** RBU does not use this extension directly. Rather, this extension is
+** provided as a convenience to developers who want to analyze RBU files
+** that contain deltas.
*/
#include <string.h>
#include <assert.h>