Structure
PostgresColumnType
Postgres-specific column types.
struct PostgresColumnType
Topics
Instance Methods
serialize(to:)Invoked when a request is made to serialize the expression to raw SQL.
Type Properties
bigintsigned eight-byte integerbigserialautoincrementing eight-byte integerbitfixed-length bit stringblobboollogical Boolean (true/false)booleanlogical Boolean (true/false)boxrectangular box on a planebyteabinary data (“byte array”)charfixed-length character stringcidrIPv4 or IPv6 network addresscirclecircle on a planedatecalendar date (year, month, day)decimalexact numeric of selectable precisiondoublePrecisionfloating-point number (8 bytes)float4single precision floating-point number (4 bytes)float8floating-point number (8 bytes)inetIPv4 or IPv6 host addressintsigned four-byte integerint2signed two-byte integerint4signed four-byte integerint8signed eight-byte integerintegersigned four-byte integerintervaltime spanjsontextual JSON datajsonbbinary JSON data, decomposedlineinfinite line on a planelsegline segment on a planemacaddrMAC (Media Access Control) addressmacaddr8MAC (Media Access Control) address (EUI-64 format)moneycurrency amountnumericexact numeric of selectable precisionpathgeometric path on a planepgLSNPostgreSQL Log Sequence Numberpointgeometric point on a planepolygonclosed geometric path on a planerealsingle precision floating-point number (4 bytes)serialautoincrementing four-byte integerserial2autoincrementing two-byte integerserial4autoincrementing four-byte integerserial8autoincrementing eight-byte integersmallintsigned two-byte integersmallserialautoincrementing two-byte integertextvariable-length character stringtimetime of day (no time zone)timestampdate and time (no time zone)timestamptzdate and time, including time zonetimetztime of day, including time zonetsquerytext search querytsvectortext search documenttxidSnapshotuser-level transaction ID snapshotuuiduniversally unique identifiervarbitvariable-length bit stringvarcharvariable-length character stringxmlXML data
Type Methods
array(_:)Creates an array type from aPostgreSQLDataType.bit(_:)fixed-length bit stringchar(_:)fixed-length character stringcustom(_:)User-defined typedecimal(_:_:)exact numeric of selectable precisionnumeric(_:_:)exact numeric of selectable precisiontime(_:)time of day (no time zone)timestamp(_:)date and time (no time zone)timestamptz(_:)date and time, including time zonetimetz(_:)time of day, including time zonevarbit(_:)variable-length bit stringvarchar(_:)variable-length character string
Relationships
Conforms To
SQLKit.SQLExpressionSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype