ColumnMetadata

public struct ColumnMetadata

Metadata about a column in the results of executing a Statement.

  • The name of the column.

    Declaration

    Swift

    public let name: String
  • If the column can be identified as a column of a specific table, the object ID of that table; otherwise zero.

    Declaration

    Swift

    public let tableOID: UInt32
  • If the column can be identified as a column of a specific table, the attribute number of the column in that table; otherwise zero.

    Declaration

    Swift

    public let columnAttributeNumber: Int
  • The object ID of the column’s data type.

    See also

    pg_type.oid

    Declaration

    Swift

    public let dataTypeOID: UInt32
  • The data type size.

    See also

    pg_type.typlen

    Declaration

    Swift

    public let dataTypeSize: Int
  • The data type modifier.

    Declaration

    Swift

    public let dataTypeModifier: UInt32