Expand description
Module for the Entity type and operations
Re-exports§
pub use compound::EntityLoaderTrait;pub use ActiveValue::NotSet;pub use ActiveValue::Set;pub use ActiveValue::Unchanged;
Modules§
Structs§
- Bool
Column - Borrowed
Identity Iter - Iterator for
Identity - Bytes
Column - Column
Def - Defines a Column for an Entity
- Date
Like Column - Supports both chrono and time Date
- Date
Time Like Column - Supports both chrono and time DateTime
- Generic
Array Column - IpNetwork
Column - Json
Column - Numeric
Array Column - Numeric
Column - A column of numeric type, including integer, float and decimal
- Numeric
Column Nullable - A column of numeric type, including integer, float and decimal that is also nullable
- Owned
Identity Iter - Iterator for
Identity - Relation
Builder - Defines a helper to build a relation
- Relation
Def - Defines a relationship
- Seaography
Column Attr - Seaography specific attributes
- String
Column - String
Column Nullable - Time
Like Column - Supports both chrono and time Time
- Uuid
Column
Enums§
- Active
Model Action - Action to perform on ActiveModel
- Active
Value - The state of a field in an [ActiveModel][ActiveModelTrait].
- Column
Type - All column types
- HasMany
Model - Container for 1-N or M-N related Models
- HasOne
Model - Container for belongs_to or has_one relation
- Identity
- List of column identifier
- Relation
Type - Defines the type of relationship
- Value
- Value variants
Traits§
- Active
Enum - A Rust representation of enum defined in database.
- Active
Enum Value - The Rust Value backing ActiveEnums
- Active
Model Behavior - A Trait for overriding the ActiveModel behavior
- Active
Model Trait ActiveModelis a type for constructingINSERTandUPDATEstatements for a particular table.- Column
Trait - API for working with a
Column. Mostly a wrapper of the identically named methods insea_query::Expr - Column
Type Trait - SeaORM’s utility methods that act on ColumnType
- Entity
Name - A Trait for mapping an Entity to a database table
- Entity
Trait - An abstract base class for defining Entities.
- From
Query Result - A Trait for implementing a QueryResult
- Iden
Static - Ensure the identifier for an Entity can be converted to a static str
- Identity
Of - Check the Identity of an Entity
- Into
Active Model - A Trait for any type that can be converted into an ActiveModel
- Into
Active Value - Any type that can be converted into an ActiveValue
- Into
Identity - Performs a conversion into an Identity
- Into
Option - Iterable
- This trait designates that an
Enumcan be iterated over. It can be auto generated using theEnumIterderive macro. - Linked
- A Trait for links between Entities
- Model
Trait - The interface for Model, implemented by data structs
- Partial
Model Trait - A trait for a part of Model
- Primary
KeyArity - How many columns this Primary Key comprises
- Primary
KeyTo Column - Trait to map a Primary Key to a column
- Primary
KeyTrait - A Trait for to be used to define a Primary Key.
- Related
- A trait to relate two Entities for them to be joined in queries
- Related
Self Via - A trait to relate an Entity to itself through a junction table
- Relation
Trait - Defines the relations of an Entity
- TryInto
Model - A Trait for any type that can be converted into an Model
Functions§
- Unset
Deprecated - Defines an not set operation on an ActiveValue
Type Aliases§
- Foreign
KeyAction - Action to perform on a foreign key whenever there are changes to an ActiveModel
- LinkDef
- Same as RelationDef