PostgresNIO Documentation

Structure Postgres​Message.​Error

public struct Error: PostgresMessageType, CustomStringConvertible  

First message sent from the frontend during startup.

%145 PostgresMessage.Error PostgresMessage.Error CustomStringConvertible CustomStringConvertible PostgresMessage.Error->CustomStringConvertible PostgresMessageType PostgresMessageType PostgresMessage.Error->PostgresMessageType

Member Of

PostgresMessage

A frontend or backend Postgres message.

Nested Types

PostgresMessage.Error.Field

Conforms To

PostgresMessageType
CustomStringConvertible

Properties

identifier

public static var identifier: PostgresMessage.Identifier  

fields

public var fields: [Field: String] 

The diagnostic messages.

description

public var description: String  

See CustomStringConvertible.

Methods

parse(from:​)

public static func parse(from buffer: inout ByteBuffer) throws -> Error  

Parses an instance of this message type from a byte buffer.