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 - A request to delete an
ActiveModel. - DynIden
- A prepared (quoted) identifier string.
- Insert
- Performs INSERT operations on a ActiveModel
- Insert
Many - Performs INSERT operations on many ActiveModels
- Select
- Defines a structure to perform select operations
- SelectA
- Implements the traits Iden for select alias
- SelectB
- Implements the traits Iden for select alias
- SelectC
- Implements the traits Iden for select alias
- Select
Five - Perform a SELECT operation on 5 Models
- Select
Four - Perform a SELECT operation on 4 Models
- Select
Six - Perform a SELECT operation on 6 Models
- Select
Three - Perform a SELECT operation on three Models
- Select
Three Many - Perform a SELECT operation on three Models with results consolidated
- 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
- Topology
Chain - A chain topology
- Topology
Star - A star topology
- TryInsert
- Performs INSERT operations on one or more ActiveModels, 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 - A request to update an
ActiveModel. - Validated
Delete One - A validated
DeleteOnerequest, where the primary key is set and itās possible to generate the right SQL condition. - Validated
Update One - A validated
UpdateOnerequest, where the primary key is set and itās possible to generate the right SQL condition. - 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 - Expr
Trait - āOperatorā methods for building expressions.
- 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
- Topology
- Topology of multi-joins