Module def

Source
Available on crate features postgres and def only.

Structs§

ArbitraryPrecisionNumericAttr
The precision (number of significan digits) and scale (the number of digits in the fractional portion) of an arbitrary precision number (numeric or decimal). When both the precision and scale are not set, any precision or scale up to the implementation limit may be stored.
ArrayDef
Defines an enum for the PostgreSQL module
BitAttr
Check
A constraint which states that a value must satisfy the following Boolean expression
ColumnExpression
ColumnInfo
EnumDef
Defines an enum for the PostgreSQL module
Exclusion
A constraint that ensures that, if any two rows are compared on the specified columns or expressions using the specified operators, at least one of these operator comparisons returns false or null
IntervalAttr
NotNull
The constraint that a value must not be null
PrimaryKey
A constraint stating that the given columns act as a unique identifier for rows in the table. This implies that the columns are not null and are unique together
References
A constraint that column references the values appearing in the row of another table
Schema
StringAttr
TableDef
TableInfo
Information relating to the table, but not its individual components. For information on a table including its columns and constraints, use TableDef
TimeAttr
Unique
That each set of values for these columns must be unique across the whole table

Enums§

Constraint
An enum consisting of all constraints
ForeignKeyAction
Type
All built-in types of PostgreSQL, excluding synonyms

Type Aliases§

ColumnType