PostgresNIO Documentation

Structure Postgres​Message.​Password

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

Identifies the message as a password response. Note that this is also used for GSSAPI and SSPI response messages (which is really a design error, since the contained data is not a null-terminated string in that case, but can be arbitrary binary data).

%351 PostgresMessage.Password PostgresMessage.Password PostgresMessageType PostgresMessageType PostgresMessage.Password->PostgresMessageType

Member Of

PostgresMessage

A frontend or backend Postgres message.

Conforms To

PostgresMessageType

Initializers

init(string:​)

public init(string: String)  

Properties

identifier

public static var identifier: PostgresMessage.Identifier  

string

public var string: String

The password (encrypted, if requested).

description

public var description: String  

Methods

serialize(into:​)

public func serialize(into buffer: inout ByteBuffer)  

Serializes this message into a byte buffer.