Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
Bind replaces placeholders in a SQL query with the provided args. It supports PostgreSQL-style ($1, $2, ...) and MySQL-style (?) placeholders.
func Normalize ¶ added in v0.2.2
Normalize replaces literal values in a SQL query with placeholders, so that structurally identical queries can be grouped together.
String literals ('...') are replaced with '?', standalone numeric literals are replaced with ?, and $N parameters are kept as-is. Consecutive whitespace is collapsed to a single space.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.