Skip to main content

Crate rudb_common

Crate rudb_common 

Source
Expand description

Types, values and errors. The bottom of the workspace.

Rank 0 in the layer rule, which means everything can see this crate and this crate can see nothing. See xtask/layers.toml and spec/18-package-layout.md.

What lives here is the vocabulary every other crate spells its signatures in. A type, a single value, an error and a span into the query text that produced it. Nothing here knows what a vector is, what a plan is or what a file is, and keeping it that way is what stops rank 0 from becoming a second name for the whole database.

Re-exports§

pub use error::Error;
pub use error::ErrorCode;
pub use error::Result;
pub use error::Span;
pub use types::Field;
pub use types::LogicalType;
pub use types::MAX_DECIMAL_WIDTH;
pub use types::PhysicalType;
pub use value::Value;
pub use value::civil_from_days;
pub use value::days_from_civil;

Modules§

error
The error model.
types
The type system, per spec/10-sql-and-types.md section 10.1.
value
Single values.