pub trait StatementExecutionInputs<S: Clone + 'static> {
// Required methods
fn statement_execution_context(&self) -> StatementExecutionContext<'_, S>;
fn statement_timeout(&self) -> Option<Duration>;
// Provided methods
fn io_context(&self) -> IOContext { ... }
fn regex_cache(&self) -> Option<Arc<RegexCache>> { ... }
fn transaction_timestamp_micros(&self) -> Option<i64> { ... }
fn temporal_date_order(&self) -> Option<TemporalDateOrder> { ... }
fn temporal_interval_style(&self) -> Option<TemporalIntervalStyle> { ... }
fn parser_settings(&self) -> ParserSettings { ... }
fn notification_subscriptions_required(&self) -> bool { ... }
fn diagnostic_search_path(&self) -> Option<Vec<String>> { ... }
}Expand description
Capture live subsystem inputs only when a statement is ready to execute.
Required Methods§
fn statement_execution_context(&self) -> StatementExecutionContext<'_, S>
Sourcefn statement_timeout(&self) -> Option<Duration>
fn statement_timeout(&self) -> Option<Duration>
The session’s statement_timeout, which a statement starts with; None lets a statement run without a limit. Reading it captures none of the statement’s execution inputs.
Provided Methods§
fn io_context(&self) -> IOContext
Sourcefn regex_cache(&self) -> Option<Arc<RegexCache>>
fn regex_cache(&self) -> Option<Arc<RegexCache>>
The session-owned compiled regex cache, shared by its nested statements and workers.
Sourcefn transaction_timestamp_micros(&self) -> Option<i64>
fn transaction_timestamp_micros(&self) -> Option<i64>
The live transaction start, or the current message’s start outside a transaction. None preserves the calling statement’s clock without capturing execution inputs.
Sourcefn temporal_date_order(&self) -> Option<TemporalDateOrder>
fn temporal_date_order(&self) -> Option<TemporalDateOrder>
The live session order for ambiguous date inputs. None preserves a caller’s input context.
Sourcefn temporal_interval_style(&self) -> Option<TemporalIntervalStyle>
fn temporal_interval_style(&self) -> Option<TemporalIntervalStyle>
The live interval input/output style; None preserves a caller’s context.
Sourcefn parser_settings(&self) -> ParserSettings
fn parser_settings(&self) -> ParserSettings
Capture scanner settings at the SQL message boundary, before its first SET can execute.
Sourcefn notification_subscriptions_required(&self) -> bool
fn notification_subscriptions_required(&self) -> bool
Read the live host policy without capturing the statement’s catalog/execution inputs.
Sourcefn diagnostic_search_path(&self) -> Option<Vec<String>>
fn diagnostic_search_path(&self) -> Option<Vec<String>>
The session search path, which diagnostics use to qualify types it does not include. None leaves type names unqualified.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".