Skip to content

Structure

PostgresColumn

Metadata for a single column in a PostgreSQL query result.
struct PostgresColumn

Topics

Instance Properties

  • columnAttributeNumber
    If the field can be identified as a column of a specific table, the attribute number of the column; otherwise zero.
  • dataType
    The object ID of the field’s data type.
  • dataTypeModifier
    The type modifier (see pg_attribute.atttypmod). The meaning of the modifier is type-specific.
  • dataTypeSize
    The data type size (see pg_type.typlen). Note that negative values denote variable-width types.
  • format
    The format being used for the field. Currently will be text or binary. In a RowDescription returned from the statement variant of Describe, the format code is not yet known and will always be text.
  • name
    The field name.
  • tableOID
    If the field can be identified as a column of a specific table, the object ID of the table; otherwise zero.

Relationships

Conforms To

  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype

See Also