Expand description
Session-lifecycle hooks — Postgres-style phased.
The trait expands the legacy before_query / after_query shape to
phased hooks at parse / analyze / plan / execute_start / execute_end /
before_commit / after_commit / abort. Each phase has a default no-op
implementation so existing hooks that only override the legacy methods
continue to work.
Structs§
- Abort
Context - Abort-phase context.
- Analyze
Context - Analyze-phase context.
- Commit
Context - Commit-phase context.
- Execute
Context - Execute-phase context.
- Parse
Context - Parse-phase context.
- Plan
Context - Plan-phase context — placeholder for the actual logical-plan handle.
- Plugin
Commit Result - Slim mirror of the host’s commit metadata.
- Query
Metrics - Query execution metrics surfaced to
on_execute_end.
Enums§
- Query
Type - Classification of the query under observation.
Traits§
- Session
Hook - Session-lifecycle hook plugin.