package granary

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Granary_encodingSource

Sourcemodule Index_key : sig ... end

Order-preserving encoding of SQL values for use as B+-tree index keys. Encoded bytes compare correctly under Bytes.compare for all supported types. NULL sorts before all non-null values. Type ordering: NULL < INTEGER < REAL < TEXT < BLOB

Sourcemodule Null_bitmap : sig ... end

Bitmap helpers for null-mask encoding.

Sourcemodule Row : sig ... end

Row schema and value (de)serialisation.

Sourcemodule Rowid : sig ... end

Order-preserving int64 codec. Byte-wise comparison of encoded values yields the same ordering as Int64.compare on the original int64 values.

Sourcemodule Schema_fingerprint : sig ... end

Stable 64-bit fingerprint of a table's schema *shape*, for corruption recovery (#174 / #85), schema-drift detection on open, and replication schema-matching (#92 / #172).

Sourcemodule Varint : sig ... end

Variable-length integer encoding. Uses LEB128 for unsigned, zigzag+LEB128 for signed.