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§
- Column
Index - Stable index of a column in a
RelationDesc
. - Column
Metadata 🔒 - Metadata (other than type) for a column in a
RelationDesc
. - Column
Name - The name of a column in a
RelationDesc
. - Column
Type - The type of a
Datum
. - NotNull
Violation - Expression violated not-null constraint on named column
- Relation
Desc - A description of the shape of a relation.
- Relation
Desc Builder - A builder for a
RelationDesc
. - Relation
Type - The type of a relation.
- Relation
Version - The version a given column was added at.
- Versioned
Relation Desc - A wrapper around
RelationDesc
that provides an interface for adding columns and generating new versions.
Enums§
- Prop
Relation Desc Diff - Diffs that can be generated proptest and applied to a
RelationDesc
to exercise schema migrations. - Relation
Version Selector - Describes a
RelationDesc
at a specific version of aVersionedRelationDesc
.
Functions§
- arb_
relation_ desc - Returns a
Strategy
that generates an arbitraryRelationDesc
with a number columns within the range provided. - arb_
relation_ desc_ diff - Generates a set of
PropRelationDescDiff
s based on some sourceRelationDesc
. - arb_
relation_ desc_ projection - Returns a
Strategy
that generates a projection of the providedRelationDesc
. - arb_
row_ for_ relation - Returns a
Strategy
that yields arbitraryRow
s for the providedRelationDesc
. - 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