Trait rorm_db::executor::QueryStrategy
source · pub trait QueryStrategy: QueryStrategyResult + QueryStrategyImpl { }Expand description
Define how a query is send to and results retrieved from the database.
This trait is implemented on the following unit structs:
Nothingretrieves nothingOptionalretrieves an optional rowOneretrieves a single rowStreamretrieves many rows in a streamAllretrieves many rows in a vectorAffectedRowsreturns the number of rows affected by the query
This trait has an associated Result<'result> type which is returned by Executor::execute.
To avoid boxing, these types are quite big.
Each of those unit structs’ docs (follow links above) contains an easy to read impl Trait version of the actual types.