bySubstitutionName property

Map<String, PgDataType<Object>> bySubstitutionName
final

Implementation

static final Map<String, PgDataType> bySubstitutionName = Map.unmodifiable({
  for (final type in values)
    // We don't index serial and bigSerial types here because they're using
    // the same names as int4 and int8, respectively.
    // However, when a user is referring to these types in a query, they
    // should always resolve to integer and bigInteger.
    if (type != serial &&
        type != bigSerial &&
        type.nameForSubstitution != null)
      type.nameForSubstitution: type,
});