Skip to content

Structure

PostgresDataType

Data types and their raw OIDs.
struct PostgresDataType

Overview

Use select * from pg_type where oid = <idhere> to look up more information for a given type.

This list was generated by running select oid, typname from pg_type where oid < 10000 order by oid and manually trimming Postgres-internal types.

Topics

Initializers

Instance Properties

  • var description: String
    A textual representation of this instance.
  • var isUserDefined: Bool
    Returns true if the type’s raw value is greater than or equal to 2^14. This appears to be true for all user-defined types, but I don’t have any documentation to back this up.
  • var knownSQLName: String?
    Returns the known SQL name, if one exists. Note: This only supports a limited subset of all PSQL types and is meant for convenience only. This list was manually generated.
  • var rawValue: UInt32
    The raw data type code recognized by PostgreSQL.

Type Properties

Default Implementations

Relationships

Conforms To

See Also

Essentials