Expand description
Types and methods to perform queries
Re-exports§
pub use crate::ConnectionTrait;pub use crate::CursorTrait;pub use crate::InsertResult;pub use crate::PaginatorTrait;pub use crate::Statement;pub use crate::StreamTrait;pub use crate::TransactionTrait;pub use crate::UpdateResult;
Macros§
- debug_
query - Helper to get a raw SQL string from an object that impl
QueryTrait. - debug_
query_ stmt - Helper to get a
Statementfrom an object that implQueryTrait.
Structs§
- Condition
- Represents the value of an
Condition::anyorCondition::all: a set of disjunctive or conjunctive conditions. - Debug
Query - This structure provides debug capabilities
- Delete
- Defines the structure for a delete operation
- Delete
Many - Perform a delete operation on multiple models
- Delete
One - Perform a delete operation on a model
- Insert
- Performs INSERT operations on a ActiveModel
- Select
- Defines a structure to perform select operations
- SelectA
- Implements the traits Iden and IdenStatic for a type
- SelectB
- Implements the traits Iden and IdenStatic for a type
- SelectC
- Implements the traits Iden and IdenStatic for a type
- Select
Three - Defines a structure to perform a SELECT operation on two Models
- Select
Two - Defines a structure to perform a SELECT operation on two Models
- Select
TwoMany - Defines a structure to perform a SELECT operation on many Models
- TryInsert
- Performs INSERT operations on a ActiveModel, will do nothing if input is empty.
- Update
- Defines a structure to perform UPDATE query operations on a ActiveModel
- Update
Many - Defines an UPDATE operation on multiple ActiveModels
- Update
One - Defines an UPDATE operation on one ActiveModel
- Values
Enums§
Traits§
- Column
AsExpr - Extending IntoSimpleExpr to support casting ActiveEnum as TEXT in select expression
- Conditional
Statement - Entity
OrSelect - Entity, or a Select
; to be used as parameters in LoaderTrait - Into
Simple Expr - Performs a conversion to SimpleExpr
- Loader
Trait - This trait implements the Data Loader API
- Ordered
Statement - Query
Filter - Perform a FILTER opertation on a statement
- Query
Order - Performs ORDER BY operations
- Query
Select - Abstract API for performing queries
- Query
Trait - A Trait for any type performing queries on a Model or ActiveModel
- Select
Columns - Select specific column for partial model queries