Module executor

Module executor 

Source
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§

AffectedRows
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§

DynamicExecutor
Choose whether to use transactions or not at runtime

Traits§

Executor
Some kind of database connection which can execute queries
QueryStrategy
Define how a query is sent to and results retrieved from the database.