Skip to main content

Module hook

Module hook 

Source
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§

AbortContext
Abort-phase context.
AnalyzeContext
Analyze-phase context.
CommitContext
Commit-phase context.
ExecuteContext
Execute-phase context.
ParseContext
Parse-phase context.
PlanContext
Plan-phase context — placeholder for the actual logical-plan handle.
PluginCommitResult
Slim mirror of the host’s commit metadata.
QueryMetrics
Query execution metrics surfaced to on_execute_end.

Enums§

QueryType
Classification of the query under observation.

Traits§

SessionHook
Session-lifecycle hook plugin.