PostgresNIO Documentation

Structure Postgres​Message.​Close

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

Identifies the message as a Close Command

%25 PostgresMessage.Close PostgresMessage.Close PostgresMessageType PostgresMessageType PostgresMessage.Close->PostgresMessageType

Member Of

PostgresMessage

A frontend or backend Postgres message.

Nested Types

PostgresMessage.Close.Target

Close Target. Determines if the Close command should close a prepared statement or portal.

Conforms To

PostgresMessageType

Properties

identifier

public static var identifier: PostgresMessage.Identifier  

target

public var target: Target

Determines if the name identifes a portal or a prepared statement

name

public var name: String

The name of the prepared statement or portal to describe (an empty string selects the unnamed prepared statement or portal).

description

public var description: String  

See CustomStringConvertible.

Methods

serialize(into:​)

public func serialize(into buffer: inout ByteBuffer) throws  

Serializes this message into a byte buffer.