Validates and double-quotes a SQL identifier (optionally schema-qualified).
Rejects anything that is not a bare identifier so object keys and table
names can never smuggle SQL into the generated statement.
Parameters
identifier: string
Table or column name (may be schema.name)
Returns string
The double-quoted identifier
Throws
If the identifier is empty or not a bare SQL identifier
Validates and double-quotes a SQL identifier (optionally schema-qualified). Rejects anything that is not a bare identifier so object keys and table names can never smuggle SQL into the generated statement.