Skip to content

assertIdentifier

function assertIdentifier(name, what?): string;

Defined in: src/storage/util.ts:17

Throw unless name is a safe SQL identifier ([a-zA-Z_][a-zA-Z0-9_]*). Returns name so it can be used inline. what names the identifier in the error ("table", "column", …).

Parameter Type Default value
name string undefined
what? string "table"

string