Table of Contents

Method RedactSql

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

RedactSql(string?)

Redacts literals in a SQL statement and truncates it to the configured limit.

public string RedactSql(string? sql)

Parameters

sql string

The SQL statement. May be null.

Returns

string

SQL safe to retain and to share, or an empty string when sql is null.