Expand description
Session hooks — before/after interception for queries and commits.
Hooks allow cross-cutting concerns (audit logging, authorization, metrics) to be injected into the query and commit lifecycle without modifying individual query call sites.
Structs§
- Builtin
Hook Plugin - Wraps a legacy
SessionHookin aPluginso the host can install it throughUni::add_plugin. The wrapped hook is registered viaLegacyHookAdapterso it participates in the phaseduni_plugin::SessionHookdispatch chain. - Commit
Hook Context - Context passed to commit hooks.
- Hook
Context - Context passed to query hooks.
- Legacy
Hook Adapter - Adapter: wraps a legacy
SessionHookso it satisfies the phaseduni_plugin::traits::hook::SessionHookcontract and can be registered throughuni_plugin::PluginRegistrar::hook.
Enums§
- Query
Type - The type of query being executed.
Traits§
- Session
Hook - Trait for session lifecycle hooks.