/ Check-in [d7d23f04]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improved comments on the fossildelta.c extension.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d7d23f0450d659b2c7df34e4df8623ca7b6fe3bd19422e3e9234515214ae8510
User & Date: drh 2019-03-02 20:09:35
Context
2019-03-04
07:15
Fix a problem preventing compilation with SQLITE_OMIT_UTF16. check-in: 906d1fd8 user: dan tags: trunk
2019-03-02
20:09
Improved comments on the fossildelta.c extension. check-in: d7d23f04 user: drh tags: trunk
15:25
Fix the SQLITE_DIRECT_OVERFLOW_READ compile-time option so that it works with SQLITE_HAS_CODEC. check-in: fd085e92 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/fossildelta.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13         -** This SQLite extension implements the delta functions used by Fossil.
           13  +** This SQLite extension implements the delta functions used by the RBU
           14  +** extension. Three scalar functions and one table-valued function are
           15  +** implemented here:
           16  +**
           17  +**   delta_apply(X,D)     -- apply delta D to file X and return the result
           18  +**   delta_create(X,Y)    -- compute and return a delta that carries X into Y
           19  +**   delta_output_size(D) -- blob size in bytes output from applying delta D
           20  +**   delta_parse(D)       -- returns rows describing delta D
           21  +**
           22  +** The delta format is the Fossil delta format, described in a comment
           23  +** on the delete_create() function implementation below, and also at
           24  +**
           25  +**    https://www.fossil-scm.org/fossil/doc/trunk/www/delta_format.wiki
           26  +**
           27  +** This delta format is used by the RBU extension, which is the main
           28  +** reason that these routines are included in the extension library.
           29  +** RBU does not use this extension directly.  Rather, this extension is
           30  +** provided as a convenience to developers who want to analyze RBU files 
           31  +** that contain deltas.
    14     32   */
    15     33   #include <string.h>
    16     34   #include <assert.h>
    17     35   #include <stdlib.h>
    18     36   #include "sqlite3ext.h"
    19     37   SQLITE_EXTENSION_INIT1
    20     38