Documentation
¶
Overview ¶
Package rawsql interpolates bind arguments into SQL text for debugging. The result is NOT injection-safe: never execute or log it in production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interpolate ¶
Interpolate substitutes args for the placeholders in sql: "$1", "$2", ... when numbered, otherwise each "?" in order. Text inside '…', "…" and `…` is left alone, so a literal such as '?' or '$1' is never mistaken for a placeholder. It is best effort: backslash escapes and dollar-quoted strings are not parsed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.