PostgresNIO Documentation

Structure Postgres​Message.​Identifier

public struct Identifier: ExpressibleByIntegerLiteral, Equatable, CustomStringConvertible  

Identifies an incoming or outgoing postgres message. Sent as the first byte, before the message size. Values are not unique across all identifiers, meaning some messages will require keeping state to identify.

%197 PostgresMessage.Identifier PostgresMessage.Identifier ExpressibleByIntegerLiteral ExpressibleByIntegerLiteral PostgresMessage.Identifier->ExpressibleByIntegerLiteral Equatable Equatable PostgresMessage.Identifier->Equatable CustomStringConvertible CustomStringConvertible PostgresMessage.Identifier->CustomStringConvertible

Member Of

PostgresMessage

A frontend or backend Postgres message.

Conforms To

CustomStringConvertible
Equatable
ExpressibleByIntegerLiteral

Initializers

init(integer​Literal:​)

public init(integerLiteral value: UInt8)  

See ExpressibleByIntegerLiteral.

Properties

none

public static let none: Identifier = 0x00

ssl​Supported

public static let sslSupported: Identifier = 0x53  

ssl​Unsupported

public static let sslUnsupported: Identifier = 0x4E  

authentication

public static let authentication: Identifier = 0x52  

Authentication (B)

backend​Key​Data

public static let backendKeyData: Identifier = 0x4B  

BackendKeyData (B)

bind

public static let bind: Identifier = 0x42  

Bind (F)

bind​Complete

public static let bindComplete: Identifier = 0x32  

BindComplete (B)

close

public static let close: Identifier = 0x43  

Close (F)

close​Complete

public static let closeComplete: Identifier = 0x33  

CloseComplete (B)

command​Complete

public static let commandComplete: Identifier = 0x43  

CommandComplete (B)

copy​Data

public static let copyData: Identifier = 0x64  

CopyData (F & B)

copy​Done

public static let copyDone: Identifier = 0x63  

CopyDone (F & B)

copy​Fail

public static let copyFail: Identifier = 0x66  

CopyFail (F)

copy​InResponse

public static let copyInResponse: Identifier = 0x47  

CopyInResponse (B)

copy​Out​Response

public static let copyOutResponse: Identifier = 0x48  

CopyOutResponse (B)

copy​Both​Response

public static let copyBothResponse: Identifier = 0x57  

data​Row

public static let dataRow: Identifier = 0x44  

DataRow (B)

describe

public static let describe: Identifier = 0x44  

Describe (F)

empty​Query​Response

public static let emptyQueryResponse: Identifier = 0x49  

EmptyQueryResponse (B)

error

public static let error: Identifier = 0x45  

ErrorResponse (B)

execute

public static let execute: Identifier = 0x45  

Execute (F)

flush

public static let flush: Identifier = 0x48  

Flush (F)

function​Call

public static let functionCall: Identifier = 0x46  

FunctionCall (F)

function​Call​Response

public static let functionCallResponse: Identifier = 0x56  

FunctionCallResponse (B)

gss​Response

public static let gssResponse: Identifier = 0x70  

GSSResponse (F)

negotiate​Protocol​Version

public static let negotiateProtocolVersion: Identifier = 0x76  

NegotiateProtocolVersion (B)

no​Data

public static let noData: Identifier = 0x6E  

NoData (B)

notice

public static let notice: Identifier = 0x4E  

NoticeResponse (B)

notification​Response

public static let notificationResponse: Identifier = 0x41  

NotificationResponse (B)

parameter​Description

public static let parameterDescription: Identifier = 0x74  

ParameterDescription (B)

parameter​Status

public static let parameterStatus: Identifier = 0x53  

ParameterStatus (B)

parse

public static let parse: Identifier = 0x50  

Parse (F)

parse​Complete

public static let parseComplete: Identifier = 0x31  

ParseComplete (B)

password​Message

public static let passwordMessage: Identifier = 0x70  

PasswordMessage (F)

portal​Suspended

public static let portalSuspended: Identifier = 0x73  

PortalSuspended (B)

query

public static let query: Identifier = 0x51  

Query (F)

ready​For​Query

public static let readyForQuery: Identifier = 0x5A  

ReadyForQuery (B)

row​Description

public static let rowDescription: Identifier = 0x54  

RowDescription (B)

sasl​Initial​Response

public static let saslInitialResponse: Identifier = 0x70  

SASLInitialResponse (F)

sasl​Response

public static let saslResponse: Identifier = 0x70  

SASLResponse (F)

sync

public static let sync: Identifier = 0x53  

Sync (F)

terminate

public static let terminate: Identifier = 0x58  

Terminate (F)

value

public let value: UInt8

description

public var description: String  

See CustomStringConvertible.