Structure
PostgresMessage.Startup
First message sent from the frontend during startup.
struct Startup
Topics
Initializers
init(protocolVersion:parameters:)Creates a newPostgreSQLStartupMessage.
Instance Properties
descriptionparametersThe 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:protocolVersionThe 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
serialize(into:)Serializes this message into a byte buffer.
Type Properties
Type Methods
versionThree(parameters:)Creates aStartupwith “3.0” as the protocol version.