Structure
PostgresColumnType
Postgres-specific column types.
struct PostgresColumnType
Topics
Instance Methods
func serialize(to: inout SQLSerializer)Invoked when a request is made to serialize the expression to raw SQL.
Type Properties
static var bigint: PostgresColumnTypesigned eight-byte integerstatic var bigserial: PostgresColumnTypeautoincrementing eight-byte integerstatic var bit: PostgresColumnTypefixed-length bit stringstatic var blob: PostgresColumnTypestatic var bool: PostgresColumnTypelogical Boolean (true/false)static var boolean: PostgresColumnTypelogical Boolean (true/false)static var box: PostgresColumnTyperectangular box on a planestatic var bytea: PostgresColumnTypebinary data (“byte array”)static var char: PostgresColumnTypefixed-length character stringstatic var cidr: PostgresColumnTypeIPv4 or IPv6 network addressstatic var circle: PostgresColumnTypecircle on a planestatic var date: PostgresColumnTypecalendar date (year, month, day)static var decimal: PostgresColumnTypeexact numeric of selectable precisionstatic var doublePrecision: PostgresColumnTypefloating-point number (8 bytes)static var float4: PostgresColumnTypesingle precision floating-point number (4 bytes)static var float8: PostgresColumnTypefloating-point number (8 bytes)static var inet: PostgresColumnTypeIPv4 or IPv6 host addressstatic var int: PostgresColumnTypesigned four-byte integerstatic var int2: PostgresColumnTypesigned two-byte integerstatic var int4: PostgresColumnTypesigned four-byte integerstatic var int8: PostgresColumnTypesigned eight-byte integerstatic var integer: PostgresColumnTypesigned four-byte integerstatic var interval: PostgresColumnTypetime spanstatic var json: PostgresColumnTypetextual JSON datastatic var jsonb: PostgresColumnTypebinary JSON data, decomposedstatic var line: PostgresColumnTypeinfinite line on a planestatic var lseg: PostgresColumnTypeline segment on a planestatic var macaddr: PostgresColumnTypeMAC (Media Access Control) addressstatic var macaddr8: PostgresColumnTypeMAC (Media Access Control) address (EUI-64 format)static var money: PostgresColumnTypecurrency amountstatic var numeric: PostgresColumnTypeexact numeric of selectable precisionstatic var path: PostgresColumnTypegeometric path on a planestatic var pgLSN: PostgresColumnTypePostgreSQL Log Sequence Numberstatic var point: PostgresColumnTypegeometric point on a planestatic var polygon: PostgresColumnTypeclosed geometric path on a planestatic var real: PostgresColumnTypesingle precision floating-point number (4 bytes)static var serial: PostgresColumnTypeautoincrementing four-byte integerstatic var serial2: PostgresColumnTypeautoincrementing two-byte integerstatic var serial4: PostgresColumnTypeautoincrementing four-byte integerstatic var serial8: PostgresColumnTypeautoincrementing eight-byte integerstatic var smallint: PostgresColumnTypesigned two-byte integerstatic var smallserial: PostgresColumnTypeautoincrementing two-byte integerstatic var text: PostgresColumnTypevariable-length character stringstatic var time: PostgresColumnTypetime of day (no time zone)static var timestamp: PostgresColumnTypedate and time (no time zone)static var timestamptz: PostgresColumnTypedate and time, including time zonestatic var timetz: PostgresColumnTypetime of day, including time zonestatic var tsquery: PostgresColumnTypetext search querystatic var tsvector: PostgresColumnTypetext search documentstatic var txidSnapshot: PostgresColumnTypeuser-level transaction ID snapshotstatic var uuid: PostgresColumnTypeuniversally unique identifierstatic var varbit: PostgresColumnTypevariable-length bit stringstatic var varchar: PostgresColumnTypevariable-length character stringstatic var xml: PostgresColumnTypeXML data
Type Methods
static func array(PostgresColumnType) -> PostgresColumnTypeCreates an array type from aPostgreSQLDataType.static func bit(Int) -> PostgresColumnTypefixed-length bit stringstatic func char(Int) -> PostgresColumnTypefixed-length character stringstatic func custom(String) -> PostgresColumnTypeUser-defined typestatic func decimal(Int, Int) -> PostgresColumnTypeexact numeric of selectable precisionstatic func numeric(Int, Int) -> PostgresColumnTypeexact numeric of selectable precisionstatic func time(Int) -> PostgresColumnTypetime of day (no time zone)static func timestamp(Int) -> PostgresColumnTypedate and time (no time zone)static func timestamptz(Int) -> PostgresColumnTypedate and time, including time zonestatic func timetz(Int) -> PostgresColumnTypetime of day, including time zonestatic func varbit(Int) -> PostgresColumnTypevariable-length bit stringstatic func varchar(Int) -> PostgresColumnTypevariable-length character string
Relationships
Conforms To
SQLKit.SQLExpressionSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype