Modules§
- async_trait 
- github crates-io docs-rs
- cli
- sea_orm
- Macros§- all
- Macro to easily create an Condition::all.
- any
- Macro to easily create an Condition::any.
 - Structs§- AddColumnOption 
- table alter add column options
- Alias
- An explicit wrapper for Idens which are dynamic user-provided strings.
- Asterisk
- Asterisk (“*”)
- CaseStatement 
- ColumnDef 
- Specification of a table column
- CommonTable Expression 
- A table definition inside a WITH clause (WithClause).
- Condition
- Represents the value of an Condition::anyorCondition::all: a set of disjunctive or conjunctive conditions.
- ConditionHolder 
- Cycle
- For recursive WithQuery WithClauses the CYCLE sql clause can be specified to avoid creating an infinite traversals that loops on graph cycles indefinitely. You specify an expression that identifies a node in the graph and that will be used to determine during the iteration of the execution of the query when appending of new values whether the new values are distinct new nodes or are already visited and therefore they should be added again into the result.
- DeleteStatement 
- Delete existing rows from the table
- Expr
- Helper to build a SimpleExpr.
- ForeignKey 
- Shorthand for constructing any foreign key statement
- ForeignKeyCreate Statement 
- Create a foreign key constraint for an existing table. Unsupported by Sqlite
- ForeignKeyDrop Statement 
- Drop a foreign key constraint for an existing table
- FrameClause 
- Frame clause
- Func
- Function call helper.
- FuncArgMod 
- FunctionCall 
- Function call.
- Index
- Shorthand for constructing any index statement
- IndexColumn Expr 
- IndexColumn Table Column 
- IndexCreate Statement 
- Create an index for an existing table
- IndexDrop Statement 
- Drop an index for an existing table
- InsertStatement 
- Insert any new rows into an existing table
- JoinExpr 
- Join expression used in select statement
- LikeExpr 
- Like Expression
- LockClause 
- Migrator
- MysqlQuery Builder 
- Mysql query builder.
- NullAlias 
- Null Alias
- OnConflict
- OrderExpr 
- Order expression
- PgFunc
- Function call helper.
- PostgresQuery Builder 
- Postgres query builder.
- Query
- Shorthand for constructing any table query
- Quote
- Returning
- Shorthand for constructing ReturningClause
- SchemaManager 
- Helper struct for writing migration scripts in migration file
- SeaRc
- Search
- For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.
- SelectExpr 
- Select expression used in select statement
- SelectStatement 
- Select rows from an existing table
- SqlWriterValues 
- SqliteQuery Builder 
- Sqlite query builder.
- Table
- Helper for constructing any table statement
- TableAlter Statement 
- Alter a table
- TableCreate Statement 
- Create a table
- TableDrop Statement 
- Drop a table
- TableForeign Key 
- Specification of a foreign key
- TableIndex 
- Specification of a table index
- TableRename Statement 
- Rename a table
- TableTruncate Statement 
- Drop a table
- Tokenizer
- UpdateStatement 
- Update existing rows in the table
- ValueType Err 
- Values
- WindowStatement 
- Window expression
- WithClause 
- A WITH clause can contain one or multiple common table expressions (CommonTableExpression).
- WithQuery 
- A WITH query. A simple SQL query that has a WITH clause (WithClause).
 - Enums§- ArrayType 
- Valuetypes variant for Postgres array
- BinOper
- Binary operators.
- ColumnRef 
- Column references
- ColumnSpec 
- All column specification keywords
- ColumnType 
- All column types
- ConditionExpression 
- Represents anything that can be passed to an Condition::anyorCondition::all’sCondition::addmethod.
- ConditionHolder Contents 
- ConditionType 
- DbErr
- An error from unsuccessful database operations
- ForeignKeyAction 
- Foreign key on update & on delete actions
- ForeignKeyStatement 
- All available types of foreign key statement
- Frame
- frame_start or frame_end clause
- FrameType 
- Frame type
- Function
- Known SQL functions.
- IndexColumn 
- IndexOrder 
- IndexStatement 
- All available types of index statement
- IndexType 
- Specification of a table index
- JoinOn
- Join on types
- JoinType 
- Join types
- Keyword
- Known SQL keywords that can be used as expressions.
- LockBehavior 
- List of lock behavior can be used in select statement
- LockType 
- List of lock types that can be used in select statement
- LogicalChain Oper 
- Logical chain operator: conjunction or disjunction.
- Mode
- NullOrdering 
- Nulls order
- OnConflictAction 
- Represents ON CONFLICT (upsert) actions
- OnConflictTarget 
- Represents ON CONFLICT (upsert) targets
- OnConflictUpdate 
- Represents strategies to update column in ON CONFLICT (upsert) actions
- Oper
- Order
- Ordering options
- PgDateTrunc Unit 
- PgFunction
- Known Postgres-specific functions.
- PgInterval
- QueryStatement 
- All available types of table query
- ReturningClause 
- RETURNING clause.
- SchemaManager Connection 
- SchemaStatement 
- SearchOrder 
- For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.
- SelectDistinct 
- List of distinct keywords that can be used in select statement
- SimpleExpr 
- Represents a Simple Expression in SQL.
- StringLen 
- Length for var-char/binary; default to 255
- SubQueryOper 
- SubQuery operators
- SubQueryStatement 
- TableAlter Option 
- All available table alter options
- TableDrop Opt 
- All available table drop options
- TableOpt 
- All available table options
- TablePartition 
- All available table partition options
- TableRef 
- Table references
- TableStatement 
- All available types of table statement
- Token
- UnOper
- Unary operators.
- UnionType 
- List of union types that can be used in union clause
- Value
- Value variants
- ValueTuple 
- WindowSelect Type 
- Window type in SelectExpr
 - Traits§- ConditionalStatement 
- ConnectionTrait 
- The generic API for a database connection that can perform query or execute statements. It abstracts database connection and transaction
- EscapeBuilder 
- ExprTrait 
- “Operator” methods for building expressions.
- ForeignKeyBuilder 
- FromValue Tuple 
- GenericBuilder 
- Iden
- Identifier
- IdenList 
- IdenStatic 
- Identifier
- IndexBuilder 
- IntoColumn Def 
- IntoColumn Ref 
- IntoCondition 
- IntoIden 
- IntoIndex Column 
- IntoLike Expr 
- IntoSchema Manager Connection 
- IntoTable Ref 
- IntoValue Tuple 
- MigrationName 
- MigrationTrait 
- The migration definition
- MigratorTrait 
- Performing migrations on a database
- Nullable
- OperLeft Assoc Decider 
- OrderedStatement 
- OverStatement 
- PrecedenceDecider 
- QueryBuilder 
- QueryStatement Builder 
- QueryStatement Writer 
- QuotedBuilder 
- SchemaBuilder 
- SchemaStatement Builder 
- SqlWriter
- TableBuilder 
- TableRefBuilder 
- ValueType 
- Write
- A trait for writing or formatting into Unicode-accepting buffers or streams.
 - Functions§- Type Aliases§- Cond
- DynIden
- MySqlQuery Builder 
- RcOrArc
- A reference counted pointer: either RcorArc, depending on the feature flags.
 - Attribute Macros§- Derive Macros§- DeriveIden 
- The DeriveIden derive macro will implement sea_orm::sea_query::Idenfor simplify Iden implementation.
- DeriveMigration Name 
- The DeriveMigrationName derive macro will implement sea_orm_migration::MigrationNamefor a migration.
- Iden
- IdenStatic