Skip to main content

StatementExecutionInputs

Trait StatementExecutionInputs 

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

Source

fn statement_execution_context(&self) -> StatementExecutionContext<'_, S>

Source

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§

Source

fn io_context(&self) -> IOContext

Source

fn regex_cache(&self) -> Option<Arc<RegexCache>>

The session-owned compiled regex cache, shared by its nested statements and workers.

Source

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.

Source

fn temporal_date_order(&self) -> Option<TemporalDateOrder>

The live session order for ambiguous date inputs. None preserves a caller’s input context.

Source

fn temporal_interval_style(&self) -> Option<TemporalIntervalStyle>

The live interval input/output style; None preserves a caller’s context.

Source

fn parser_settings(&self) -> ParserSettings

Capture scanner settings at the SQL message boundary, before its first SET can execute.

Source

fn notification_subscriptions_required(&self) -> bool

Read the live host policy without capturing the statement’s catalog/execution inputs.

Source

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".

Implementors§