operator::statement

Function derive_timeout

source
fn derive_timeout(
    stmt: &QueryStatement,
    query_ctx: &QueryContextRef,
) -> Option<Duration>
Expand description

If the relevant variables are set, the timeout is enforced for all PostgreSQL statements. For MySQL, it applies only to read-only statements.