PostgresNIO Documentation

Structure Postgres​Message.​Parse

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

Identifies the message as a Parse command.

%179 PostgresMessage.Parse PostgresMessage.Parse PostgresMessageType PostgresMessageType PostgresMessage.Parse->PostgresMessageType

Member Of

PostgresMessage

A frontend or backend Postgres message.

Conforms To

PostgresMessageType

Properties

identifier

public static var identifier: PostgresMessage.Identifier  

statement​Name

public var statementName: String

The name of the destination prepared statement (an empty string selects the unnamed prepared statement).

query

public var query: String

The query string to be parsed.

parameter​Types

public var parameterTypes: [PostgresDataType] 

The number of parameter data types specified (can be zero). Note that this is not an indication of the number of parameters that might appear in the query string, only the number that the frontend wants to prespecify types for. Specifies the object ID of the parameter data type. Placing a zero here is equivalent to leaving the type unspecified.

Methods

serialize(into:​)

public func serialize(into buffer: inout ByteBuffer)  

Serializes this message into a byte buffer.