Skip to main content

check_transaction_isolation_feature_flag

Function check_transaction_isolation_feature_flag 

Source
pub fn check_transaction_isolation_feature_flag(
    name: &str,
    input: VarInput<'_>,
    system_vars: &SystemVars,
) -> Result<(), VarError>
Expand description

Enforces feature-flag gating for transaction_isolation levels that sit behind a flag (bounded staleness <duration> and strong session serializable).

Returns Ok(()) for any other variable, and for an unparseable value (parse errors surface on the actual set). This is shared by every path that assigns transaction_isolationSET, SET TRANSACTION, ALTER ROLE ... SET, and connection options — so that the gate cannot be bypassed by choosing a different syntax or letter case.