Skip to main content

Function: escapeSqlIdentifier()

function escapeSqlIdentifier(identifier: string): string;

Defined in: electron/services/database/MonitorRepository.updateUtils.ts:57

Quotes and validates a SQLite identifier (column name).

Parameters​

identifier​

string

Returns​

string

Remarks​

Identifiers cannot be bound as SQL parameters, so they must be validated. This function enforces a conservative identifier grammar and then applies defensive quoting.