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. - 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
Version - The version a given column was added at.
- Repr
Column Type - SqlColumn
Type - The type of a
Datum. - SqlRelation
Type - The type of a relation.
- Versioned
Relation Desc - A wrapper around
RelationDescthat 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
RelationDescto exercise schema migrations. - Relation
Version Selector - Describes a
RelationDescat a specific version of aVersionedRelationDesc.
Constants§
- UNKNOWN_
COLUMN_ NAME - Default name of a column (when no other information is known).
Functions§
- arb_
relation_ desc - Returns a
Strategythat generates an arbitraryRelationDescwith a number columns within the range provided. - arb_
relation_ desc_ diff - Generates a set of
PropRelationDescDiffs based on some sourceRelationDesc. - arb_
relation_ desc_ projection - Returns a
Strategythat generates a projection of the providedRelationDesc. - arb_
row_ for_ relation - Returns a
Strategythat yields arbitraryRows for the providedRelationDesc. - return_
true 🔒 - This method exists solely for the purpose of making SqlColumnType 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