Structure
PostgresMessage.Startup
First message sent from the frontend during startup.
struct Startup
Topics
Initializers
init(protocolVersion: Int32, parameters: [String : String])Creates a newPostgreSQLStartupMessage.
Instance Properties
var description: Stringvar parameters: [String : String]The protocol version number is followed by one or more pairs of parameter name and value strings. A zero byte is required as a terminator after the last name/value pair. Parameters can appear in any order. user is required, others are optional. Each parameter is specified as:var protocolVersion: Int32The protocol version number. The most significant 16 bits are the major version number (3 for the protocol described here). The least significant 16 bits are the minor version number (0 for the protocol described here).
Instance Methods
func serialize(into: inout ByteBuffer)Serializes this message into a byte buffer.
Type Properties
Type Methods
static func versionThree(parameters: [String : String]) -> PostgresMessage.StartupCreates aStartupwith “3.0” as the protocol version.