Skip to main content
zerotal

Documentation


Documentation / @zerotal/devtools / index / redactBindings

Function: redactBindings()

redactBindings(sql, bindings, options?): unknown[]

Defined in: devtools/src/redaction.ts:78

Mask the bindings of sql that belong to a sensitive column.

Parameters

sql

string

The statement the bindings belong to, used to attribute each one to a column.

bindings

unknown[]

The values, positionally matched to the statement's placeholders.

options?

RedactionOptions = {}

Redaction settings from the app's devtools config.

Returns

unknown[]

A new array; the input is not modified.