Std.Db.Protocol
26 public declarations
- authenticationKind
&Bytes -> Result[Int, Std.Db.Protocol.ProtocolError]What kind of authentication the server asked for, read from the message
- bind
Str -> Str -> &Array[Option[Str]] -> BytesValues supplied for a planned statement's holes.
- bodyLength
&Bytes -> Option[Int]How many bytes a message needs beyond the five already read, or nothing
- Column
A column the server says a result will have.
- cString
Str -> BytesText with the zero byte the protocol ends a string with.
- describeStatement
Str -> BytesAsk what shape a planned statement produces.
- execute
Str -> Int -> BytesRun a bound statement, with no limit on how many rows come back.
- fieldOf
&Array[(Str, Str)] -> Str -> StrOne field of an error, by the letter naming it.
- frame
Str -> &Bytes -> BytesA message framed the way the protocol frames one: the letter, then the
- Message
One message, as it travels: the letter naming its kind and the bytes after
- messageSize
&Bytes -> Result[Int, Std.Db.Protocol.ProtocolError]Validate the length before a streaming reader allocates or requests a body.
- parse
Str -> Str -> BytesA statement given to the server to plan, with the values left as holes.
- password
Str -> BytesA password sent as the server asked for it.
- ProtocolError
Why bytes on the wire did not make a message.
- query
Str -> BytesA simple query, which asks the server to plan and run text in one step.
- readCString
&Bytes -> Result[(Str, Bytes), Std.Db.Protocol.ProtocolError]The text at the front of a payload, and what follows it.
- readDataRow
&Bytes -> Result[Array[Option[Str]], Std.Db.Protocol.ProtocolError]SQL NULL has one explicit sentinel; invalid or truncated text is not absent.
- readFields
&Bytes -> Array[(Str, Str)]The fields an error or notice carries, keyed by the letter naming each.
- readMessage
&Bytes -> Result[(Std.Db.Protocol.Message, Bytes), Std.Db.Protocol.ProtocolError]Read one complete message, preserving any following frames.
- readRowDescription
&Bytes -> Result[Array[Std.Db.Protocol.Column], Std.Db.Protocol.ProtocolError]The columns a row description names.
- saslInitial
Str -> Str -> BytesThe first message of a challenge, naming the mechanism and the opening
- saslResponse
Str -> BytesA later message of a challenge, which carries only its text.
- startup
&Array[(Str, Str)] -> BytesThe first message a connection sends, which carries no letter.
- sync
BytesEnd the sequence, so the server reports and becomes ready again.
- terminate
BytesSay the connection is finished.
- VERSION
IntThe version this speaks: the third revision of the protocol, written as a
