Skip to main content

Module hooks

Module hooks 

Source
Expand description

SQLx bindings for the shared database lifecycle hooks.

Structs§

DatabaseHookContext
Context passed to database lifecycle hooks.
SqlxBackend
The SQLx hook backend: implement DatabaseHooks<S, SqlxBackend> to receive its pool and transaction.
SqlxHookConnection
A native connection acquired by SqlxHookContextExt::connection.

Enums§

HookControl
Control flow returned by database before_* hooks.

Traits§

DatabaseHooks
Lifecycle hooks for intercepting auth writes.
HookBackend
Database handles an adapter exposes to its lifecycle hooks.
SqlxHookContextExt
Query access through the active auth transaction, or the pool outside one.

Functions§

current_request_hook_context

Type Aliases§

SqlxHookContext
Context passed to SQLx lifecycle hooks.