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.

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.

Functions§

current_request_hook_context

Type Aliases§

SqlxHookContext
Context passed to SQLx lifecycle hooks.