[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/devtools](../../README) / [index](../README) / attributeBindings

# Function: attributeBindings()

> **attributeBindings**(`sql`, `count`): (`string` \| `undefined`)[]

Defined in: [devtools/src/redaction.ts:110](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/devtools/src/redaction.ts#L110)

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`)[]
