module CQL::Postgres::Wire::Frontend

Overview

Encoders for the messages a client sends. Each writes one complete frame to io, so several can be buffered and flushed together (pipelining).

Defined in:

postgres/wire/frontend.cr

Constant Summary

CANCEL_REQUEST = 80877102
SSL_REQUEST = 80877103

Class Method Summary

Class Method Detail

def self.bind(io : IO, statement : String, params : Array(Types::Param), result_formats : Array(Int16)) : Nil #

[View source]
def self.cancel_request(io : IO, process_id : Int32, secret_key : Bytes) : Nil #

The secret key runs to the end of the message (4 bytes before protocol 3.2).


[View source]
def self.close_portal(io : IO) : Nil #

[View source]
def self.close_statement(io : IO, name : String) : Nil #

[View source]
def self.copy_data(io : IO, chunk : Bytes) : Nil #

[View source]
def self.copy_done(io : IO) : Nil #

[View source]
def self.copy_fail(io : IO, reason : String) : Nil #

[View source]
def self.describe_statement(io : IO, name : String) : Nil #

[View source]
def self.execute(io : IO, max_rows : Int32 = 0) : Nil #

Runs the unnamed portal, returning at most max_rows rows (0: all of them).


[View source]
def self.flush(io : IO) : Nil #

[View source]
def self.parse(io : IO, name : String, sql : String) : Nil #

[View source]
def self.password(io : IO, password : String) : Nil #

[View source]
def self.query(io : IO, sql : String) : Nil #

[View source]
def self.sasl_initial_response(io : IO, mechanism : String, response : Bytes) : Nil #

[View source]
def self.sasl_response(io : IO, response : Bytes) : Nil #

[View source]
def self.ssl_request(io : IO) : Nil #

[View source]
def self.startup(io : IO, parameters : Hash(String, String), version : ProtocolVersion = ProtocolVersion::V3_0) : Nil #

[View source]
def self.sync(io : IO) : Nil #

[View source]
def self.terminate(io : IO) : Nil #

[View source]