Validates a SQL identifier and returns its parts unquoted.
The validation is what makes an object key safe to interpolate: anything that
is not a bare identifier is rejected outright, so no quoting style can be
escaped. Use this where a bare name is required, such as a COLLATE clause.
Parameters
identifier: string
Table or column name (may be schema.name)
Returns string[]
The validated identifier parts
Throws
If the identifier is empty or not a bare SQL identifier
Validates a SQL identifier and returns its parts unquoted.
The validation is what makes an object key safe to interpolate: anything that is not a bare identifier is rejected outright, so no quoting style can be escaped. Use this where a bare name is required, such as a
COLLATEclause.