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§
- Affected
Rows QueryStrategy
returning how many rows have been affected by the query- All
QueryStrategy
returning a vector of rows- Nothing
QueryStrategy
returning nothing- One
QueryStrategy
returning a single row- Optional
QueryStrategy
returning an optional row- Stream
QueryStrategy
returning a stream of rows
Enums§
- Dynamic
Executor - Choose whether to use transactions or not at runtime
Traits§
- Executor
- Some kind of database connection which can execute queries
- Query
Strategy - Define how a query is sent to and results retrieved from the database.