@earth-app/collegedb
    Preparing search index...

    Function quoteIdentifier

    • 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.

      Parameters

      • identifier: string

        Table or column name (may be schema.name)

      • Optionaldialect: SQLDialect

        Dialect of the target shard; omitted means ANSI double quotes

      Returns string

      The quoted identifier

      If the identifier is empty or not a bare SQL identifier

      1.2.4