Documentation / @zerotal/devtools / index / attributeBindings
Function: attributeBindings()
attributeBindings(
sql,count): (string|undefined)[]
Defined in: devtools/src/redaction.ts:110
Pair each ? placeholder in sql with the column it sets or compares.
Handles the three shapes the query builder emits: INSERT … (cols) VALUES (?, …),
SET col = ?, and WHERE col <op> ? (including IN (?, ?), where every
placeholder belongs to the same column). Returns undefined at any position it
cannot attribute.
Parameters
sql
string
count
number
Returns
(string | undefined)[]