PGType
public enum PGType : UInt32, CaseIterable
supported postgresql data types
-
unsupported data types have a native data type of string and return a string represenation of the value, or an empty string
Declaration
Swift
case unsupported = 0 -
uses native type of .bool
Declaration
Swift
case bool = 16 -
uses native type of .int
Declaration
Swift
case int2 = 21 -
uses native type of .int
Declaration
Swift
case int4 = 23 -
uses native type of .int
Declaration
Swift
case int8 = 20 -
uses native type of .double
Declaration
Swift
case float = 700 -
uses native type of .double
Declaration
Swift
case double = 701 -
not yet supported, but planned
Declaration
Swift
case numeric = 1700 -
uses native type of .string
Declaration
Swift
case char = 18 -
uses native type of .string
Declaration
Swift
case name = 19 -
uses native type of .string
Declaration
Swift
case text = 25 -
uses native type of .string
Declaration
Swift
case bpchar = 1042 -
uses native type of .string
Declaration
Swift
case varchar = 1043 -
uses native type of .string
Declaration
Swift
case json = 114 -
uses native type of .string
Declaration
Swift
case xml = 142 -
uses native type of .date
Declaration
Swift
case date = 1082 -
uses native type of .date
Declaration
Swift
case time = 1083 -
uses native type of .date
Declaration
Swift
case timetz = 1266 -
uses native type of .date
Declaration
Swift
case timestamp = 1114 -
uses native type of .date
Declaration
Swift
case timestamptz = 1184 -
uses native type of .data
Declaration
Swift
case bytea = 17 -
the native type (int, string, date) used for this PGtype
Declaration
Swift
public var nativeType: NativeType { get }
View on GitHub
PGType Enumeration Reference