Skip to main content

Crate zu_common

Crate zu_common 

Source
Expand description

Shared identifiers, errors, and constants used by every zu crate.

The id layout is format-stable and documented in docs/03-data-model.md.

Re-exports§

pub use decimal::Decimal;
pub use gqlstatus::DiagnosticRecord;
pub use gqlstatus::GqlStatus;
pub use gqlstatus::Position;
pub use gqlstatus::Severity;
pub use ids::IdMap;
pub use ids::IdSet;
pub use temporal::Clock;
pub use temporal::IntervalField;
pub use temporal::IntervalQualifier;
pub use temporal::Temporal;
pub use types::DurationKind;
pub use types::Field;
pub use types::FloatBits;
pub use types::IntBits;
pub use types::LogicalType;
pub use types::PathType;
pub use types::PhysicalType;
pub use types::RecordType;
pub use types::type_by_name;

Modules§

bytes
Byte strings, GV35: how one is written down and how one is read back.
decimal
Exact decimal numbers, GV17.
gqlstatus
GQLSTATUS: the ISO/IEC 39075:2024 condition codes and the diagnostic record that carries one back to a caller (Spec/2064g/gql/plan/07).
ids
A hash for maps whose key is an id.
keywords
The words the grammar spells out, and which of them a name may be.
temporal
Temporal values: the six types of GV39, GV40 and GV41.
types
The two layer type model (gql/plan/02 sections 2 and 3).
unicode
Unicode normalization: the four normal forms of ISO 20.24 and 19.7.

Structs§

Interrupt
A handle on a running statement.
NodeId
Packed node identifier. See the module docs for the bit layout.
RelId
Identifies a relationship: the rel table plus its position in CSR order.

Enums§

ZuError
Top-level error for all zu operations.

Constants§

C_ABI_VERSION
The revision of the C ABI this workspace publishes (dx/02 §8).
GROUP_ROWS
Rows per node group, fixed at 2^17.

Functions§

int_key
The order-preserving key of a signed integer: big endian so the bytes compare most significant first, with the sign bit flipped so negatives sort below non-negatives instead of above them.

Type Aliases§

Epoch
Checkpoint or commit epoch, monotonically increasing.
NodeGroupId
Index of a node group within a table.
NodeOffset
Row offset within a node group, 0..GROUP_ROWS.
Result
Result alias used across the workspace.
TableId
Identifies a node or rel table in the catalog.