Skip to main content

Documentation Index

Fetch the complete documentation index at: https://hexxladb.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

ReadChangelogSince

Read changelog entries from a commit sequence. Requires Options.ChangelogEnabled.
entries, err := db.ReadChangelogSince(seq)
for _, entry := range entries {
    fmt.Printf("Op: %s, Key: %s\n", entry.Op, entry.Key)
}

ReadChangelogFiltered

Filtered read by op codes and/or key prefix.
filter := hexxladb.ChangelogFilter{
    Ops:       []byte{hexxladb.ChangelogOpPutCell, hexxladb.ChangelogOpPutSeam},
    KeyPrefix: []byte("cell/"),
}
entries, err := db.ReadChangelogFiltered(ctx, seq, filter)

ChangelogFilter

type ChangelogFilter struct {
    Ops       []byte   // Op codes to include
    KeyPrefix []byte   // Key prefix filter
}

ChangelogRecord

Typed alias of internal record.
type ChangelogRecord struct {
    Seq       uint64
    Op        byte
    Key       []byte
    Value     []byte
    Timestamp int64
}

Op codes

Stable op codes:
Op codeDescription
ChangelogOpPutCellCell put operation
ChangelogOpPutSeamSeam put operation
ChangelogOpResolveSeamSeam resolution
ChangelogOpPutFacetFacet put operation
ChangelogOpPutEdgeEdge put operation
ChangelogOpDeleteCellCell delete operation

See also

  • Changelog — Changelog concepts and use cases