class
CQL::Postgres::Handshake
- CQL::Postgres::Handshake
- Reference
- Object
Overview
Runs the startup exchange on a fresh stream: StartupMessage, authentication in whichever method the server asks for, then the parameter and key messages up to the first ReadyForQuery.
Defined in:
postgres/handshake.crConstant Summary
-
MAX_MESSAGE_SIZE =
64 * 1024 -
Startup messages are small; refuse anything bigger before authenticating.
Constructors
-
.new(config : Config, io : IO, requested : ProtocolVersion = config.max_protocol_version)
Asks for requested and settles for the highest version the server offers, as long as it is not older than the config's minimum.
Instance Method Summary
Constructor Detail
Asks for requested and settles for the highest version the server offers, as long as it is not older than the config's minimum.