Validates and 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. The quote character
follows dialect: backticks for MySQL and MariaDB, which reject ANSI double
quotes unless ANSI_QUOTES is set, and double quotes everywhere else.
Validates and 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. The quote character follows
dialect: backticks for MySQL and MariaDB, which reject ANSI double quotes unlessANSI_QUOTESis set, and double quotes everywhere else.