Module relation

Source

Re-exports§

pub use crate::relation_and_scalar::ProtoColumnMetadata;
pub use crate::relation_and_scalar::ProtoColumnName;
pub use crate::relation_and_scalar::ProtoColumnType;
pub use crate::relation_and_scalar::ProtoRelationDesc;
pub use crate::relation_and_scalar::ProtoRelationType;
pub use crate::relation_and_scalar::ProtoRelationVersion;

Structs§

ColumnIndex
Stable index of a column in a RelationDesc.
ColumnMetadata 🔒
Metadata (other than type) for a column in a RelationDesc.
ColumnName
The name of a column in a RelationDesc.
ColumnType
The type of a Datum.
NotNullViolation
Expression violated not-null constraint on named column
RelationDesc
A description of the shape of a relation.
RelationDescBuilder
A builder for a RelationDesc.
RelationType
The type of a relation.
RelationVersion
The version a given column was added at.
VersionedRelationDesc
A wrapper around RelationDesc that provides an interface for adding columns and generating new versions.

Enums§

PropRelationDescDiff
Diffs that can be generated proptest and applied to a RelationDesc to exercise schema migrations.
RelationVersionSelector
Describes a RelationDesc at a specific version of a VersionedRelationDesc.

Functions§

arb_relation_desc
Returns a Strategy that generates an arbitrary RelationDesc with a number columns within the range provided.
arb_relation_desc_diff
Generates a set of PropRelationDescDiffs based on some source RelationDesc.
arb_relation_desc_projection
Returns a Strategy that generates a projection of the provided RelationDesc.
arb_row_for_relation
Returns a Strategy that yields arbitrary Rows for the provided RelationDesc.
return_true 🔒
This method exists solely for the purpose of making ColumnType nullable by default in unit tests. The default value of a bool is false, and the only way to make an object take on any other value by default is to pass it a function that returns the desired default value. See https://github.com/serde-rs/serde/issues/1030