Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render processes a Jinja template string with the given filter values. It is for non-SQL values; use RenderSQL for SQL text or expressions.
func RenderSQL ¶ added in v0.24.0
RenderSQL evaluates Jinja normally (including conditions and loops), but captures every output before it can enter SQL. Outputs are substituted only inside ordinary single-quoted literals, or as numbers outside literals. Never use Render for SQL fragments containing request-controlled values.
func ValidateSQLValue ¶ added in v0.24.0
ValidateSQLValue rejects characters that cannot be interpolated portably across the SQL dialects supported by the CLI backend. That backend has no bind-parameter API; guessing a dialect's escaping rules is unsafe.
func ValidateSemanticValue ¶ added in v0.32.2
ValidateSemanticValue allows apostrophes: the semantic compiler quotes values. Keep backslashes and controls restricted for dialects without explicit escaping.
Types ¶
This section is empty.