PostgresNIO Documentation

Structure Postgres​Message.​Ready​For​Query

@available(*, deprecated, message: "Will be removed from public API")
    public struct ReadyForQuery: CustomStringConvertible  

Identifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle.

%307 PostgresMessage.ReadyForQuery PostgresMessage.ReadyForQuery CustomStringConvertible CustomStringConvertible PostgresMessage.ReadyForQuery->CustomStringConvertible

Member Of

PostgresMessage

A frontend or backend Postgres message.

Conforms To

CustomStringConvertible

Properties

transaction​Status

public var transactionStatus: UInt8

Current backend transaction status indicator. Possible values are 'I' if idle (not in a transaction block); 'T' if in a transaction block; or 'E' if in a failed transaction block (queries will be rejected until block is ended).

description

public var description: String  

See CustomStringConvertible.

Methods

parse(from:​)

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

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