PostgreSQLDataType

public struct PostgreSQLDataType : SQLDataType, Equatable

PostgreSQL specific SQLDataType.

  • See Equatable.

    Declaration

    Swift

    public static func == (lhs: PostgreSQLDataType, rhs: PostgreSQLDataType) -> Bool
  • See SQLDataType.

    Declaration

    Swift

    public static func dataType(appropriateFor type: Any.Type) -> PostgreSQLDataType?
  • signed eight-byte integer

    Declaration

    Swift

    public static var int8: PostgreSQLDataType { get }
  • signed eight-byte integer

    Declaration

    Swift

    public static var bigint: PostgreSQLDataType { get }
  • autoincrementing eight-byte integer

    Declaration

    Swift

    public static var serial8: PostgreSQLDataType { get }
  • autoincrementing eight-byte integer

    Declaration

    Swift

    public static var bigserial: PostgreSQLDataType { get }
  • bit

    fixed-length bit string

    Declaration

    Swift

    public static var bit: PostgreSQLDataType { get }
  • fixed-length bit string

    Declaration

    Swift

    public static func bit(_ n: Int) -> PostgreSQLDataType
  • variable-length bit string

    Declaration

    Swift

    public static var varbit: PostgreSQLDataType { get }
  • variable-length bit string

    Declaration

    Swift

    public static func varbit(_ n: Int) -> PostgreSQLDataType
  • logical Boolean (true/false)

    Declaration

    Swift

    public static var bool: PostgreSQLDataType { get }
  • logical Boolean (true/false)

    Declaration

    Swift

    public static var boolean: PostgreSQLDataType { get }
  • box

    rectangular box on a plane

    Declaration

    Swift

    public static var box: PostgreSQLDataType { get }
  • binary data (“byte array”)

    Declaration

    Swift

    public static var bytea: PostgreSQLDataType { get }
  • fixed-length character string

    Declaration

    Swift

    public static var char: PostgreSQLDataType { get }
  • fixed-length character string

    Declaration

    Swift

    public static func char(_ n: Int) -> PostgreSQLDataType
  • variable-length character string

    Declaration

    Swift

    public static var varchar: PostgreSQLDataType { get }
  • variable-length character string

    Declaration

    Swift

    public static func varchar(_ n: Int) -> PostgreSQLDataType
  • IPv4 or IPv6 network address

    Declaration

    Swift

    public static var cidr: PostgreSQLDataType { get }
  • circle on a plane

    Declaration

    Swift

    public static var circle: PostgreSQLDataType { get }
  • calendar date (year, month, day)

    Declaration

    Swift

    public static var date: PostgreSQLDataType { get }
  • floating-point number (8 bytes)

    Declaration

    Swift

    public static var float8: PostgreSQLDataType { get }
  • floating-point number (8 bytes)

    Declaration

    Swift

    public static var doublePrecision: PostgreSQLDataType { get }
  • IPv4 or IPv6 host address

    Declaration

    Swift

    public static var inet: PostgreSQLDataType { get }
  • int

    signed four-byte integer

    Declaration

    Swift

    public static var int: PostgreSQLDataType { get }
  • signed four-byte integer

    Declaration

    Swift

    public static var int4: PostgreSQLDataType { get }
  • signed four-byte integer

    Declaration

    Swift

    public static var integer: PostgreSQLDataType { get }
  • time span

    Declaration

    Swift

    public static var interval: PostgreSQLDataType { get }
  • textual JSON data

    Declaration

    Swift

    public static var json: PostgreSQLDataType { get }
  • binary JSON data, decomposed

    Declaration

    Swift

    public static var jsonb: PostgreSQLDataType { get }
  • infinite line on a plane

    Declaration

    Swift

    public static var line: PostgreSQLDataType { get }
  • line segment on a plane

    Declaration

    Swift

    public static var lseg: PostgreSQLDataType { get }
  • MAC (Media Access Control) address

    Declaration

    Swift

    public static var macaddr: PostgreSQLDataType { get }
  • MAC (Media Access Control) address (EUI-64 format)

    Declaration

    Swift

    public static var macaddr8: PostgreSQLDataType { get }
  • currency amount

    Declaration

    Swift

    public static var money: PostgreSQLDataType { get }
  • exact numeric of selectable precision

    Declaration

    Swift

    public static var decimal: PostgreSQLDataType { get }
  • exact numeric of selectable precision

    Declaration

    Swift

    public static func decimal(_ p: Int, _ s: Int) -> PostgreSQLDataType
  • exact numeric of selectable precision

    Declaration

    Swift

    public static func numeric(_ p: Int, _ s: Int) -> PostgreSQLDataType
  • exact numeric of selectable precision

    Declaration

    Swift

    public static var numeric: PostgreSQLDataType { get }
  • geometric path on a plane

    Declaration

    Swift

    public static var path: PostgreSQLDataType { get }
  • PostgreSQL Log Sequence Number

    Declaration

    Swift

    public static var pgLSN: PostgreSQLDataType { get }
  • geometric point on a plane

    Declaration

    Swift

    public static var point: PostgreSQLDataType { get }
  • closed geometric path on a plane

    Declaration

    Swift

    public static var polygon: PostgreSQLDataType { get }
  • single precision floating-point number (4 bytes)

    Declaration

    Swift

    public static var float4: PostgreSQLDataType { get }
  • single precision floating-point number (4 bytes)

    Declaration

    Swift

    public static var real: PostgreSQLDataType { get }
  • signed two-byte integer

    Declaration

    Swift

    public static var int2: PostgreSQLDataType { get }
  • signed two-byte integer

    Declaration

    Swift

    public static var smallint: PostgreSQLDataType { get }
  • autoincrementing two-byte integer

    Declaration

    Swift

    public static var serial2: PostgreSQLDataType { get }
  • autoincrementing two-byte integer

    Declaration

    Swift

    public static var smallserial: PostgreSQLDataType { get }
  • autoincrementing four-byte integer

    Declaration

    Swift

    public static var serial4: PostgreSQLDataType { get }
  • autoincrementing four-byte integer

    Declaration

    Swift

    public static var serial: PostgreSQLDataType { get }
  • variable-length character string

    Declaration

    Swift

    public static var text: PostgreSQLDataType { get }
  • time of day (no time zone)

    Declaration

    Swift

    public static var time: PostgreSQLDataType { get }
  • time of day (no time zone)

    Declaration

    Swift

    public static func time(_ n: Int) -> PostgreSQLDataType
  • time of day, including time zone

    Declaration

    Swift

    public static var timetz: PostgreSQLDataType { get }
  • time of day, including time zone

    Declaration

    Swift

    public static func timetz(_ n: Int) -> PostgreSQLDataType
  • date and time (no time zone)

    Declaration

    Swift

    public static var timestamp: PostgreSQLDataType { get }
  • date and time (no time zone)

    Declaration

    Swift

    public static func timestamp(_ n: Int) -> PostgreSQLDataType
  • date and time, including time zone

    Declaration

    Swift

    public static var timestamptz: PostgreSQLDataType { get }
  • date and time, including time zone

    Declaration

    Swift

    public static func timestamptz(_ n: Int) -> PostgreSQLDataType
  • text search query

    Declaration

    Swift

    public static var tsquery: PostgreSQLDataType { get }
  • text search document

    Declaration

    Swift

    public static var tsvector: PostgreSQLDataType { get }
  • user-level transaction ID snapshot

    Declaration

    Swift

    public static var txidSnapshot: PostgreSQLDataType { get }
  • universally unique identifier

    Declaration

    Swift

    public static var uuid: PostgreSQLDataType { get }
  • xml

    XML data

    Declaration

    Swift

    public static var xml: PostgreSQLDataType { get }
  • User-defined type

    Declaration

    Swift

    public static func custom(_ name: String) -> PostgreSQLDataType
  • Creates an array type from a PostgreSQLDataType.

    Declaration

    Swift

    public static func array(_ dataType: PostgreSQLDataType) -> PostgreSQLDataType
  • See SQLSerializable.

    Declaration

    Swift

    public func serialize(_ binds: inout [Encodable]) -> String