Class PostgresIdentifiers

java.lang.Object
io.micronaut.data.model.query.builder.sql.postgres.PostgresIdentifiers

@Internal public final class PostgresIdentifiers extends Object
Normalizes mapped identifiers for PostgreSQL databases using UTF-8 and the default identifier limit.
  • Method Details

    • normalize

      public static String normalize(String identifier, boolean quoted)
      Resolves the catalog spelling of a mapped identifier. PostgreSQL folds only ASCII uppercase letters in unquoted UTF-8 identifiers and truncates both quoted and unquoted identifiers to 63 bytes, preserving complete characters.
      Parameters:
      identifier - the mapped name without SQL identifier quotes
      quoted - whether SQL generation quotes the identifier
      Returns:
      the identifier spelling used in notification payloads