Skip to main content

Module connection

Module connection 

Source
Expand description

Connection trait for abstracting over Pool and Transaction.

Rather than defining our own Connection trait, fletch leverages sqlx::Executor directly. The Executor re-export allows users to write functions generic over any SQLx executor (pool, connection, or transaction) without importing sqlx themselves.

Traitsยง

Executor
Re-export of the SQLx Executor trait.