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", …).
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
name |
string |
undefined |
what? |
string |
"table" |
Returns
Section titled “Returns”string