Documentation
¶
Overview ¶
Package sqlbind writes one query with numbered placeholders ($1, $2, …) for every dialect, so tanGO's own raw SQL (migrations, tests) does not have to be duplicated per placeholder style.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RebindArgs ¶
RebindArgs rewrites query for a positional dialect: outside quoted string literals and identifiers each $N becomes "?". It also returns which numbered argument each "?" takes, 1-indexed, in order: a query that uses $1 twice returns order [1 …, 1]. A query with no numbered placeholders returns a nil order, meaning the arguments are used as given.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.