skunk.net.message
Definitions of Postgres messages, with binary encoders and decoders. Doc for this package isn't very good yet, but the message formats are well documented at the linked pages below. It's a straightforward mapping.
It's probably useful to point out that Codec
, Encoder
, and Decoder
in this package are from
scodec. They're '''not''' the data types of the same name and same general
design that are defined above in the skunk
package. I realize this is confusing, but it
shouldn't be a concern for anyone other than people working on the wire protocol, which never
changes (heh-heh) so it shouldn't be a big deal.
Attributes
- See also:
Members list
Type members
Classlikes
Specifies that the authentication was successful.
Specifies that the authentication was successful.
Attributes
- Source:
- AuthenticationCleartextPassword.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
Specifies that GSSAPI authentication is required.
Specifies that GSSAPI authentication is required.
Attributes
- Source:
- AuthenticationGSS.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- AuthenticationGSS.type
Specifies that this message contains GSSAPI or SSPI data.
Specifies that this message contains GSSAPI or SSPI data.
Attributes
- data
GSSAPI or SSPI authentication data.
- Companion:
- object
- Source:
- AuthenticationGSSContinue.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- AuthenticationGSSContinue.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Source:
- AuthenticationKerberosV5.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
Specifies that an MD5-encrypted password is required.
Specifies that an MD5-encrypted password is required.
Attributes
- salt
The salt to use when encrypting the password.
- Companion:
- object
- Source:
- AuthenticationMD5Password.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- AuthenticationMD5Password.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Specifies that the authentication was successful.
Specifies that the authentication was successful.
Attributes
- Source:
- AuthenticationOk.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- AuthenticationOk.type
Family of BackendMessage
relating to authentication. All share the same top-level decoder,
which switches on a secondary tag and delegates to secondary decoders.
Family of BackendMessage
relating to authentication. All share the same top-level decoder,
which switches on a secondary tag and delegates to secondary decoders.
Attributes
- Companion:
- object
- Source:
- AuthenticationRequest.scala
- Graph
- Supertypes
- Known subtypes
- object AuthenticationCleartextPassword.typeobject AuthenticationGSS.typeobject AuthenticationKerberosV5.typeobject AuthenticationOk.typeclass AuthenticationSASLclass AuthenticationSASLFinalobject AuthenticationSCMCredential.typeobject AuthenticationSSPI.type
Attributes
- Companion:
- trait
- Source:
- AuthenticationRequest.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Specifies that SASL authentication is required. The message body is a list of SASL authentication mechanisms, in the server's order of preference.
Specifies that SASL authentication is required. The message body is a list of SASL authentication mechanisms, in the server's order of preference.
Attributes
- mechanisms
Names of supported SASL authentication mechanisms.
- Companion:
- object
- Source:
- AuthenticationSASL.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- AuthenticationSASL.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- AuthenticationSASL.type
Specifies that this message contains a SASL challenge.
Specifies that this message contains a SASL challenge.
Attributes
- data
SASL data, specific to the SASL mechanism being used.
- Companion:
- object
- Source:
- AuthenticationSASLContinue.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- AuthenticationSASLContinue.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Specifies that SASL authentication has completed.
Specifies that SASL authentication has completed.
Attributes
- data
SASL outcome "additional data", specific to the SASL mechanism being used.
- Companion:
- object
- Source:
- AuthenticationSASLFinal.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- AuthenticationSASLFinal.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Source:
- AuthenticationSCMCredential.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
Specifies that SSPI authentication is required.
Specifies that SSPI authentication is required.
Attributes
- Source:
- AuthenticationSSPI.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait AuthenticationRequesttrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- AuthenticationSSPI.type
Cancellation key data. The frontend must save these values if it wishes to be able to issue
CancelRequest
messages later.
Cancellation key data. The frontend must save these values if it wishes to be able to issue
CancelRequest
messages later.
Attributes
- key
The secret key of this backend.
- pid
The process ID of this backend.
- Companion:
- object
- Source:
- BackendKeyData.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- BackendKeyData.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- BackendKeyData.type
Family of messages that are received from the server (the "back end"). These messages all consist of a leading tag and a length-prefixed payload. This is an open hierarchy because I don't like the aesthetics of a 52-case ADT. We may revisit this but it's ok for now.
Family of messages that are received from the server (the "back end"). These messages all consist of a leading tag and a length-prefixed payload. This is an open hierarchy because I don't like the aesthetics of a 52-case ADT. We may revisit this but it's ok for now.
Attributes
- Companion:
- object
- Source:
- BackendMessage.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait AuthenticationRequestobject AuthenticationCleartextPassword.typeobject AuthenticationGSS.typeobject AuthenticationKerberosV5.typeobject AuthenticationOk.typeclass AuthenticationSASLclass AuthenticationSASLFinalobject AuthenticationSCMCredential.typeobject AuthenticationSSPI.typeclass BackendKeyDataobject BindComplete.typeobject CloseComplete.typeclass CommandCompleteclass CopyDataobject CopyDone.typeclass CopyInResponseclass CopyOutResponseobject EmptyQueryResponse.typeclass ErrorResponseobject NoData.typeclass NoticeResponseclass NotificationResponseclass ParameterDescriptionclass ParameterStatusobject ParseComplete.typeobject PortalSuspended.typeclass ReadyForQueryclass RowDataclass RowDescriptionclass UnknownMessage
Attributes
- Companion:
- trait
- Source:
- BackendMessage.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- BackendMessage.type
Attributes
- Companion:
- object
- Source:
- Bind.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- Bind.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- Bind.type
Attributes
- Source:
- BindComplete.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- BindComplete.type
Attributes
- Companion:
- object
- Source:
- Close.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- Close.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Close.type
Attributes
- Source:
- CloseComplete.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- CloseComplete.type
Attributes
- Source:
- package.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Command-completed response. The command tag is usually a single word that identifies which SQL command was completed.
Command-completed response. The command tag is usually a single word that identifies which SQL command was completed.
- For an INSERT command, the tag is
INSERT <oid> <rows>
, where rows is the number of rows inserted. oid is the object ID of the inserted row if rows is 1 and the target table has OIDs; otherwise oid is 0. - For a DELETE command, the tag is DELETE rows where rows is the number of rows deleted.
- For an UPDATE command, the tag is UPDATE rows where rows is the number of rows updated.
- For a SELECT or CREATE TABLE AS command, the tag is SELECT rows where rows is the number of rows retrieved.
- For a MOVE command, the tag is MOVE rows where rows is the number of rows the cursor's position has been changed by.
- For a FETCH command, the tag is FETCH rows where rows is the number of rows that have been retrieved from the cursor.
- For a COPY command, the tag is COPY rows where rows is the number of rows copied. (Note: the row count appears only in PostgreSQL 8.2 and later.)
Attributes
- completion
The command tag.
- Companion:
- object
- Source:
- CommandComplete.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- CommandComplete.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- CommandComplete.type
Attributes
- Source:
- FrontendMessage.scala
- Graph
- Supertypes
- Known subtypes
Attributes
- Companion:
- object
- Source:
- CopyData.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- CopyData.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- CopyData.type
Attributes
- Source:
- CopyDone.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- CopyDone.type
Attributes
- Source:
- CopyFail.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass ConstFrontendMessageclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
- Self type
- CopyFail.type
Attributes
- Companion:
- object
- Source:
- CopyInResponse.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- CopyInResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- CopyInResponse.type
Attributes
- Companion:
- object
- Source:
- CopyOutResponse.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- CopyOutResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- CopyOutResponse.type
Attributes
- Companion:
- object
- Source:
- Describe.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- Describe.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Describe.type
Attributes
- Source:
- EmptyQueryResponse.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- EmptyQueryResponse.type
Attributes
- Companion:
- object
- Source:
- ErrorResponse.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- ErrorResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ErrorResponse.type
Attributes
- Companion:
- object
- Source:
- Execute.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- Execute.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- Execute.type
Attributes
- Source:
- Flush.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass ConstFrontendMessageclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
- Self type
- Flush.type
Attributes
- Source:
- FrontendMessage.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class TaggedFrontendMessageclass Bindclass Closeclass ConstFrontendMessageobject CopyFail.typeobject Flush.typeobject Sync.typeobject Terminate.typeclass Describeclass Executeclass Parseclass PasswordMessageclass Queryclass SASLInitialResponseclass SASLResponseclass UntaggedFrontendMessageclass StartupMessage
Attributes
- Source:
- NoData.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- NoData.type
Attributes
- Companion:
- object
- Source:
- NoticeResponse.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- NoticeResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- NoticeResponse.type
Attributes
- Companion:
- object
- Source:
- NotificationResponse.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- NotificationResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- NotificationResponse.type
Attributes
- Companion:
- object
- Source:
- ParameterDescription.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- ParameterDescription.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ParameterDescription.type
Attributes
- Companion:
- object
- Source:
- ParameterStatus.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- ParameterStatus.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ParameterStatus.type
Attributes
- Companion:
- object
- Source:
- Parse.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- Parse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- Parse.type
Attributes
- Source:
- ParseComplete.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- ParseComplete.type
Attributes
- Companion:
- object
- Source:
- PasswordMessage.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- PasswordMessage.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- PasswordMessage.type
Attributes
- Source:
- PortalSuspended.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BackendMessageclass Objecttrait Matchableclass Any
- Self type
- PortalSuspended.type
Attributes
- Companion:
- object
- Source:
- Query.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- Query.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- Query.type
Attributes
- Companion:
- object
- Source:
- ReadyForQuery.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- ReadyForQuery.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ReadyForQuery.type
Attributes
- Companion:
- object
- Source:
- RowData.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- RowData.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- RowData.type
Attributes
- Companion:
- object
- Source:
- RowDescription.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- RowDescription.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- RowDescription.type
Initial response from client to server in a SASL authentication. The supplied mechanism
is one of the advertised mechanisms from the AuthenticationSASL
message.
Initial response from client to server in a SASL authentication. The supplied mechanism
is one of the advertised mechanisms from the AuthenticationSASL
message.
Attributes
- initialResponse
Mechanism specific response message.
- mechanism
Names of selected SASL authentication mechanism.
- Companion:
- object
- Source:
- SASLInitialResponse.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- SASLInitialResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- SASLInitialResponse.type
Non-initial response from client to server in a SASL authentication.
Non-initial response from client to server in a SASL authentication.
Attributes
- response
Mechanism specific response message.
- Companion:
- object
- Source:
- SASLResponse.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- SASLResponse.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- SASLResponse.type
Attributes
- Companion:
- object
- Source:
- StartupMessage.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass UntaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- StartupMessage.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- StartupMessage.type
Attributes
- Source:
- Sync.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass ConstFrontendMessageclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
- Self type
- Sync.type
Attributes
- Source:
- FrontendMessage.scala
- Graph
- Supertypes
- Known subtypes
- class Bindclass Closeclass ConstFrontendMessageobject CopyFail.typeobject Flush.typeobject Sync.typeobject Terminate.typeclass Describeclass Executeclass Parseclass PasswordMessageclass Queryclass SASLInitialResponseclass SASLResponse
Attributes
- Source:
- Terminate.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass ConstFrontendMessageclass TaggedFrontendMessagetrait FrontendMessageclass Objecttrait Matchableclass Any
- Self type
- Terminate.type
Default interpretation of a backend message if the tag is unknown to Skunk.
Default interpretation of a backend message if the tag is unknown to Skunk.
Attributes
- Companion:
- object
- Source:
- UnknownMessage.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- UnknownMessage.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- UnknownMessage.type
Attributes
- Source:
- FrontendMessage.scala
- Graph
- Supertypes
- Known subtypes
- class StartupMessage