db/sql_identifier.ts view source
(name: string): string Assert that a string is a valid SQL identifier.
Use this before interpolating table or column names into DDL queries
where parameterized placeholders ($1) are not supported.
name
the identifier to validate
type
stringreturns
string the validated identifier
throws
if- the identifier contains invalid characters