Module scalar

Source

Re-exportsยง

pub use crate::relation_and_scalar::ProtoScalarType;
pub use crate::relation_and_scalar::proto_scalar_type::ProtoRecordField;

Macrosยง

impl_datum_type_copy ๐Ÿ”’
Macro to derive DatumType for all Datum variants that are simple Copy types

Structsยง

ArrayRustType
A new type that wraps a Vec that is used to differentiate the target Datum between Arrays and Lists. The target of this type is Array.
PropArray
PropDict
PropList
PropRange

Enumsยง

Datum
A single value.
DatumKind
PropDatum
A mirror type for Datum that can be proptest-generated.
ScalarBaseType
ScalarType
The type of a Datum.

Staticsยง

EMPTY_ARRAY_ROW ๐Ÿ”’
EMPTY_LIST_ROW ๐Ÿ”’
EMPTY_MAP_ROW ๐Ÿ”’

Traitsยง

AsColumnType
Types that implement this trait can be stored in an SQL column with the specified ColumnType
DatumType
A bridge between native Rust types and SQL runtime types represented in Datums

Functionsยง

add_arb_duration
arb_array ๐Ÿ”’
arb_array_dimension ๐Ÿ”’
arb_date ๐Ÿ”’
arb_datum
Generate an arbitrary PropDatum.
arb_datum_for_column
Generates an arbitrary PropDatum for the provided ColumnType.
arb_datum_for_scalar
Generates an arbitrary PropDatum for the provided ScalarType.
arb_dict ๐Ÿ”’
arb_list ๐Ÿ”’
arb_naive_date_time
Generates an arbitrary NaiveDateTime.
arb_numeric ๐Ÿ”’
arb_range ๐Ÿ”’
arb_range_data ๐Ÿ”’
arb_range_type
arb_record ๐Ÿ”’
arb_utc_date_time
Generates an arbitrary DateTime in Utc.
write_delimited ๐Ÿ”’