Expand description
This module defines a wrapper for sqlx’s Executor
Unlike sqlx’s Executor which provides several separate methods for different querying strategies,
our Executor
has a single method which is generic using the QueryStrategy
trait.
Structs
QueryStrategy
returning how many rows have been affected by the queryQueryStrategy
returning a vector of rowsQueryStrategy
returning nothingQueryStrategy
returning a single rowQueryStrategy
returning an optional rowQueryStrategy
returning a stream of rows
Enums
- Choose whether to use transactions or not at runtime
Traits
- Some kind of database connection which can execute queries
- Define how a query is send to and results retrieved from the database.