ITZMA is still taking shape, and its API can change between releases. Version 0.2.1: serde_with security fix
Docs / Reference

Errors

The ItzmaError variants a caller usually handles, and when each happens.

On this page

Rust

Every fallible call returns itzma_core::Result<T> with ItzmaError, which is #[non_exhaustive]. The library does not panic on bad input. The ones a caller usually handles:

VariantWhen
NamespaceExists, NamespaceNotFoundcreate on a taken id, open on a missing one
DimensionMismatch, InvalidVectora vector of the wrong length, non-finite, or zero under cosine
UnknownAttr, AttrTypeMismatch, InvalidAttrsattributes or a predicate that do not fit the schema
InvalidQuery, InvalidId, InvalidKey, InvalidColumns, InvalidConfigbad arguments, refused before any storage call
BatchTooLargea batch over 64 MiB
WriteContention, ManifestContention32 lost races in a row; nothing was written
KeyConflicta keyed retry found its key on a different batch
ReadBudgetExceededa read past the handle’s budget
WalFormatTooNew, SegmentFormatTooNewthe namespace is at a level this build does not read; upgrade the build
WalFormatTooOld, SegmentFormatTooOldthe call needs a higher level; run the matching upgrade_*
CorruptWal, CorruptSegment, CorruptIndex, CorruptSparseIndex, CorruptManifestan object is damaged or does not match; a query never falls back to a flat scan over a damaged index
ManifestExists, Unrecoverablefrom recover
Storagethe backend failed

Python

Python raises subclasses of itzma.ItzmaError, grouped more coarsely (InvalidInput, Contention, Corrupt and so on); Python API lists them.

Docs
esc

Loading the docs…