Modules§
- async_
trait - github crates-io docs-rs
- cli
- m20220101_
000001_ create_ table - sea_orm
Macros§
- all
- Macro to easily create an
Condition::all. - any
- Macro to easily create an
Condition::any. - raw_
query - raw_sql
Structs§
- AddColumn
Option - table alter add column options
- Alias
- An explicit wrapper for
Idens which are dynamic user-provided strings. - Asterisk
- Asterisk (“*”)
- Case
Statement - Check
- Column
Def - Specification of a table column
- Column
Name - A column name, potentially qualified as
(database.)(schema.)(table.)column. - Column
Spec - Common
Table 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. - Condition
Holder - Cycle
- For recursive WithQuery WithClauses the CYCLE sql clause can be specified to avoid creating an infinite traversals that loops on graph cycles indefinitely.
- Database
Name - An identifier that represents a database name.
- Delete
Statement - Delete existing rows from the table
- Drop
Column Option - table alter drop column options
- DynIden
- A prepared (quoted) identifier string.
- Foreign
Key - Shorthand for constructing any foreign key statement
- Foreign
KeyCreate Statement - Create a foreign key constraint for an existing table. Unsupported by Sqlite
- Foreign
KeyDrop Statement - Drop a foreign key constraint for an existing table
- Frame
Clause - Frame clause
- Func
ArgMod - Function
Call - Function call.
- Generated
- Index
- Shorthand for constructing any index statement
- Index
Column Expr - Index
Column Table Column - Index
Create Statement - Create an index for an existing table
- Index
Drop Statement - Drop an index for an existing table
- Insert
Statement - Insert any new rows into an existing table
- Join
Expr - Join expression used in select statement
- Like
Expr - Like Expression
- Lock
Clause - Migrator
- Mysql
Query Builder - Mysql query builder.
- Null
Alias - Null Alias
- OnConflict
- Order
Expr - Order expression
- Postgres
Query Builder - Postgres query builder.
- Query
- Shorthand for constructing any table query
- Quote
- Returning
- Shorthand for constructing
ReturningClause - Schema
Manager - Helper struct for writing migration scripts in migration file
- Schema
Name - A schema name, potentially qualified as
(database.)schema. - SeaRc
- A legacy namespace for compatibility.
- Search
- For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.
- Select
Expr - Select expression used in select statement
- Select
Statement - Select rows from an existing table
- SqlWriter
Values - Sqlite
Query Builder - Sqlite query builder.
- Table
- Helper for constructing any table statement
- Table
Alter Statement - Alter a table
- Table
Create Statement - Create a table
- Table
Drop Statement - Drop a table
- Table
Foreign Key - Specification of a foreign key
- Table
Index - Specification of a table index
- Table
Name - A table name, potentially qualified as
(database.)(schema.)table. - Table
Rename Statement - Rename a table
- Table
Truncate Statement - Drop a table
- Tokenizer
- Tokenizer for processing SQL.
- TypeRef
- An SQL type name, potentially qualified as
(database.)(schema.)type. - Update
Statement - Update existing rows in the table
- Value
Tuple Iter - Value
Type Err - Values
- Window
Statement - Window expression
- With
Clause - A WITH clause can contain one or multiple common table expressions (CommonTableExpression).
- With
Query - A WITH query. A simple SQL query that has a WITH clause (WithClause).
Enums§
- Array
Type Valuetypes variant for Postgres array- BinOper
- Binary operators.
- Column
Ref - Column references.
- Column
Type - All column types
- Condition
Holder Contents - Condition
Type - DbErr
- An error from unsuccessful database operations
- Expr
- An arbitrary, dynamically-typed SQL expression.
- Foreign
KeyAction - Foreign key on update & on delete actions
- Foreign
KeyStatement - All available types of foreign key statement
- Frame
- frame_start or frame_end clause
- Frame
Type - Frame type
- Func
- Known SQL functions.
- Index
Column - Index
Order - Index
Statement - All available types of index statement
- Index
Type - Specification of a table index
- JoinOn
- Join on types
- Join
Type - Join types
- Keyword
- Known SQL keywords that can be used as expressions.
- Lock
Behavior - List of lock behavior can be used in select statement
- Lock
Type - List of lock types that can be used in select statement
- Logical
Chain Oper - Logical chain operator: conjunction or disjunction.
- Mode
- Null
Ordering - Nulls order
- OnConflict
Action - Represents ON CONFLICT (upsert) actions
- OnConflict
Target - Represents ON CONFLICT (upsert) targets
- OnConflict
Update - Represents strategies to update column in ON CONFLICT (upsert) actions
- Oper
- Order
- Ordering options
- PgDate
Trunc Unit - PgFunc
- Known Postgres-specific functions.
- PgInterval
- Query
Statement - All available types of table query
- Returning
Clause - RETURNING clause.
- Schema
Manager Connection - Schema
Statement - Search
Order - For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.
- Select
Distinct - List of distinct keywords that can be used in select statement
- String
Len - Length for var-char/binary; default to 255
- SubQuery
Oper - SubQuery operators
- SubQuery
Statement - Table
Alter Option - All available table alter options
- Table
Drop Opt - All available table drop options
- Table
Opt - All available table options
- Table
Partition - All available table partition options
- Table
Ref - Table references
- Table
Statement - All available types of table statement
- Token
- UnOper
- Unary operators.
- Union
Type - List of union types that can be used in union clause
- Value
- Value variants
- Value
Tuple - Window
Select Type - Window type in
SelectExpr
Constants§
- VALUE_
SIZE - This test is to check if the size of
Valueexceeds the limit.
Traits§
- Conditional
Statement - Connection
Trait - The generic API for a database connection that can perform query or execute statements. It abstracts database connection and transaction
- Date
Like Value - Date
Like Value Nullable - Date
Time Like Value - Date
Time Like Value Nullable - Escape
Builder - Expr
Trait - “Operator” methods for building expressions.
- Foreign
KeyBuilder - From
Value Tuple - Generic
Builder - Iden
- Identifier
- Iden
List - Iden
Static - Identifier statically known at compile-time.
- Index
Builder - Into
Column Def - Into
Column Ref - Into
Condition - A helper trait.
- Into
Iden - Into
Index Column - Into
Like Expr - Into
Schema Manager Connection - Into
Table Ref - Into
Type Ref - Into
Value Tuple - Maybe
Qualified Once - A name that can be unqualified (
foo) or qualified once (foo.bar). - Maybe
Qualified Twice - A name that can be unqualified (
foo), qualified once (foo.bar), or twice (foo.bar.baz). - Migration
Name - Migration
Trait - The migration definition
- Migrator
Trait - Performing migrations on a database
- Nullable
- Numeric
Value - Numeric
Value Nullable - Oper
Left Assoc Decider - Ordered
Statement - Over
Statement - Precedence
Decider - Query
Builder - Query
Statement Builder - Query
Statement Writer - Quoted
Builder - Schema
Builder - Schema
Statement Builder - SqlWriter
- Table
Builder - Table
RefBuilder - Time
Like Value - Time
Like Value Nullable - Value
Type - Write
- A trait for writing or formatting into Unicode-accepting buffers or streams.
Functions§
- inject_
parameters - is_
static_ iden - Return whether this identifier needs to be escaped.
Right now we’re very safe and only return true for identifiers
composed of
a-zA-Z0-9_. - sea_
value_ to_ json_ value - Convert value to json value
Type Aliases§
- Cond
- Function
Deprecated - Type alias of
Funcfor compatibility. Previously,Funcis a namespace for buildingFunctionCall. - MySql
Query Builder - RcOrArc
- A reference counted pointer: either
RcorArc, depending on the feature flags. - Simple
Expr - A legacy compatibility alias for
Expr.
Attribute Macros§
Derive Macros§
- Derive
Iden - The DeriveIden derive macro will implement
sea_orm::Idenfor simplify Iden implementation. - Derive
Migration Name - The DeriveMigrationName derive macro will implement
sea_orm_migration::MigrationNamefor a migration. - Iden
- Iden
Static