Skip to main content

Module guard

Module guard 

Source
Expand description

Shared complexity guards for recursion-heavy SQL operations.

Structs§

ComplexityGuardOptions
Guard options for parse/transpile/generate complexity.
ParseOptions
Per-call parsing options. An absent guard preserves dialect-specific defaults.

Functions§

enforce_ast
Enforce AST size/depth limits and report parse-oriented errors.
enforce_generate_ast
Enforce AST size/depth limits and report generation-oriented errors.
enforce_input
Enforce raw SQL input limits before tokenization.
enforce_tokens