PostgresNIO Documentation

Structure Postgres​Message.​Backend​Key​Data

public struct BackendKeyData: PostgresMessageType  

Identifies the message as cancellation key data. The frontend must save these values if it wishes to be able to issue CancelRequest messages later.

%287 PostgresMessage.BackendKeyData PostgresMessage.BackendKeyData PostgresMessageType PostgresMessageType PostgresMessage.BackendKeyData->PostgresMessageType

Member Of

PostgresMessage

A frontend or backend Postgres message.

Conforms To

PostgresMessageType

Properties

identifier

public static var identifier: PostgresMessage.Identifier  

process​ID

public var processID: Int32

The process ID of this backend.

secret​Key

public var secretKey: Int32

The secret key of this backend.

Methods

parse(from:​)

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

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