Structure
PostgresData
struct PostgresData
Topics
Initializers
init<T>(array: [T])init(array: [PostgresData?], elementType: PostgresDataType)init(bool: Bool)init<Bytes>(bytes: Bytes)init(date: Date)init(decimal: Decimal)init(double: Double)init(float: Float)init(int16: Int16)init(int32: Int32)init(int64: Int64)init(int8: Int8)init(int: Int)init(json:)init(jsonb:)init(numeric: PostgresNumeric)init(string: String)init(type: PostgresDataType, typeModifier: Int32?, formatCode: PostgresFormat, value: ByteBuffer?)init(uint16: UInt16)init(uint32: UInt32)init(uint64: UInt64)init(uint8: UInt8)init(uint: UInt)init(uuid: UUID)
Instance Properties
var array: [PostgresData]?var bool: Bool?var bytes: [UInt8]?var character: Character?var date: Date?var decimal: Decimal?var double: Double?var float: Float?var formatCode: PostgresFormatThe format code being used for the field. Currently will be zero (text) or one (binary). In a RowDescription returned from the statement variant of Describe, the format code is not yet known and will always be zero.var int: Int?var int16: Int16?var int32: Int32?var int64: Int64?var int8: Int8?var json: Data?var jsonb: Data?var numeric: PostgresNumeric?var string: String?var type: PostgresDataTypeThe object ID of the field’s data type.var typeModifier: Int32?The type modifier (see pg_attribute.atttypmod). The meaning of the modifier is type-specific.var uint: UInt?var uint16: UInt16?var uint32: UInt32?var uint64: UInt64?var uint8: UInt8?var uuid: UUID?var value: ByteBuffer?
Instance Methods
func array<T>(of: T.Type) -> [T]?func json<T>(as: T.Type) throws -> T?func jsonb<T>(as: T.Type) throws -> T?
Type Properties
Default Implementations
Relationships
Conforms To
PostgresDataConvertibleSwift.CopyableSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EscapableSwift.ExpressibleByBooleanLiteralSwift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.SendableSwift.SendableMetatype
See Also
Deprecated APIs
protocol PostgresDatabaseprotocol PostgresDataConvertiblestruct PostgresQueryResultprotocol PostgresJSONCodableprotocol PostgresJSONBCodableclass PostgresMessageEncoderclass PostgresMessageDecoderprotocol PostgresRequestProtocol to encapsulate a function call on the Postgres serverstruct PostgresMessageA frontend or backend Postgres message.protocol PostgresMessageTypetypealias PostgresFormatCodeclass PostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.struct PreparedQueryclass SASLAuthenticationManagerprotocol SASLAuthenticationMechanismThe protocol to which all SASL mechanism implementations must conform. It is the responsibility of each individual implementation to provide an API for creating instances of itself which are able to retrieve information from the caller (such as usernames and passwords) by some mechanism.