Options structure
MVCC options
EnableMVCC
Enables multi-version concurrency control for snapshot isolation and time-travel queries.MVCCRetention
Configures how much commit history to retain for prune suggestions.Changelog options
ChangelogEnabled
Enables the logical changefeed for audit trails and CDC.{primary}-changelog that records all mutations.
Encryption options
EncryptionKey
Raw 32-byte encryption key for AES-256-XTS.Passphrase
Passphrase for key derivation using Argon2id and HKDF-SHA256.EncryptionKey or Passphrase, not both.
Storage options
PageSize
Page size for the B+ tree. Accepted values: 4096, 8192, 16384, 65536 bytes. Default: 4096.MaxValueBytes
Maximum value length per database. Accepted values: 512 to 1,048,576 bytes. Default: 8192.Embedding options
EmbeddingDimension
Fixed vector dimension for new databases. 0 = disabled. Immutable after creation.DistanceMetric
Similarity function for embedding search.DistanceCosine(default) — Cosine similarity, range [-1, 1]DistanceDotProduct— Raw dot product, assumes normalized vectorsDistanceL2— Euclidean distance, inverted for ranking
Hooks
CellValidator
Called before writing a cell to validate or reject it.AfterPutCell
Called after successfully writing a cell.AfterPutSeam
Called after successfully writing a seam.See also
- Database — Database lifecycle
- Embeddings — Vector search configuration