merkle-db.patch

Patches are applied on top of tables in order to efficiently store changes while re-using old indexed data.

default-limit

The default number of changes to hold in a patch tablet.

from-changes

(from-changes changes)

Construct a patch tablet node data from a map of change data.

patch-seq

(patch-seq patch records)

Combines an ordered sequence of patch data with a lazy sequence of record keys and data. Any records present in the patch will appear in the output sequence, replacing any equivalent keys from the sequence. If the changed value is a tombstone, the record will not appear in the sequence.

remove-tombstones

(remove-tombstones rs)

Returns a lazy sequence of record entries with tombstoned records removed.

tombstone?

(tombstone? x)

Returns true if the value is a tombstone.