identifierQuoteForEngine static method

String identifierQuoteForEngine(
  1. DbEngineType engineType
)

Returns the identifier quote character for engineType.

Oracle and Cassandra/ScyllaDB use unquoted identifiers so unquoted DDL names fold to their native case without requiring exact case matching.

Implementation

static String identifierQuoteForEngine(DbEngineType engineType) {
  if (engineType == DbEngineType.mysql || engineType == DbEngineType.planetscale) {
    return '`';
  }
  if (engineType == DbEngineType.oracle || engineType == DbEngineType.cassandra) {
    return '';
  }
  return '"';
}