Module sea_orm::entity::prelude

source ·
Expand description

Re-export common types from the entity

Re-exports§

Structs§

  • A big decimal type.
  • ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.
  • ISO 8601 combined date and time without timezone.
  • ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.
  • ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.
  • ISO 8601 combined date and time without timezone.
  • Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.
  • Helper to build a SimpleExpr.
  • A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
  • ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.
  • Date in the proleptic Gregorian calendar.
  • Combined date and time.
  • The clock time within a given date. Nanosecond precision.
  • A Universally Unique Identifier (UUID).

Enums§

Traits§

Type Aliases§

Derive Macros§

  • A derive macro to implement sea_orm::ActiveEnum trait for enums.
  • The DeriveActiveModel derive macro will implement ActiveModelTrait for ActiveModel which provides setters and getters for all active values in the active model.
  • Models that a user can override
  • The DeriveColumn derive macro will implement [ColumnTrait] for Columns. It defines the identifier of each column by implementing Iden and IdenStatic. The EnumIter is also derived, allowing iteration over all enum variants.
  • Derive a column if column names are not in snake-case
  • Create an Entity
  • This derive macro is the ‘almighty’ macro which automatically generates Entity, Column, and PrimaryKey from a given Model.
  • The DeriveIden derive macro will implement sea_orm::sea_query::Iden for simplify Iden implementation.
  • Derive into an active model
  • The DeriveModel derive macro will implement ModelTrait for Model, which provides setters and getters for all attributes in the mod It also implements FromQueryResult to convert a query result into the corresponding Model.
  • The DerivePartialModel derive macro will implement sea_orm::PartialModelTrait for simplify partial model queries.
  • The DerivePrimaryKey derive macro will implement [PrimaryKeyToColumn] for PrimaryKey which defines tedious mappings between primary keys and columns. The EnumIter is also derived, allowing iteration over all enum variants.
  • The DeriveRelatedEntity derive macro will implement seaography::RelationBuilder for RelatedEntity enumeration.
  • The DeriveRelation derive macro will implement RelationTrait for Relation.
  • Implements traits for types that wrap a database value type.
  • Creates a new type that iterates of the variants of an enum.