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

Concise view

Type members

Classlikes

Specifies that the authentication was successful.

Specifies that the authentication was successful.

Attributes

Source:
AuthenticationCleartextPassword.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Specifies that GSSAPI authentication is required.

Specifies that GSSAPI authentication is required.

Attributes

Source:
AuthenticationGSS.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
AuthenticationGSSContinue.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source:
AuthenticationKerberosV5.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
AuthenticationMD5Password.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Specifies that the authentication was successful.

Specifies that the authentication was successful.

Attributes

Source:
AuthenticationOk.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Source:
AuthenticationRequest.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class AuthenticationSASL(mechanisms: List[String]) extends AuthenticationRequest

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
AuthenticationSASL.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
AuthenticationSASLContinue.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
AuthenticationSASLFinal.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source:
AuthenticationSCMCredential.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Specifies that SSPI authentication is required.

Specifies that SSPI authentication is required.

Attributes

Source:
AuthenticationSSPI.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final case class BackendKeyData(pid: Int, key: Int) extends BackendMessage

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
BackendKeyData.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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 Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Source:
BackendMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Bind(portal: String, statement: String, args: List[Option[String]]) extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
Bind.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Bind

Attributes

Companion:
class
Source:
Bind.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Bind.type
case object BindComplete extends BackendMessage

Attributes

Source:
BindComplete.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
sealed abstract case class Close(variant: Byte, name: String) extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
Close.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Close

Attributes

Companion:
class
Source:
Close.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Close.type
case object CloseComplete extends BackendMessage

Attributes

Source:
CloseComplete.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final implicit class CodecOps[A](val self: Codec[A]) extends AnyVal

Attributes

Source:
package.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any
case class CommandComplete(completion: Completion) extends BackendMessage

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
CommandComplete.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
abstract class ConstFrontendMessage(tag: Byte) extends TaggedFrontendMessage

Attributes

Source:
FrontendMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CopyFail.type
object Flush.type
object Sync.type
object Terminate.type
final case class CopyData(data: ByteVector) extends BackendMessage

Attributes

Companion:
object
Source:
CopyData.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object CopyData

Attributes

Companion:
class
Source:
CopyData.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case object CopyDone extends BackendMessage

Attributes

Source:
CopyDone.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
case object CopyFail extends ConstFrontendMessage

Attributes

Source:
CopyFail.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final case class CopyInResponse(data: ByteVector) extends BackendMessage

Attributes

Companion:
object
Source:
CopyInResponse.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
CopyInResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class CopyOutResponse(data: ByteVector) extends BackendMessage

Attributes

Companion:
object
Source:
CopyOutResponse.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
CopyOutResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract case class Describe(variant: Byte, name: String) extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
Describe.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Describe

Attributes

Companion:
class
Source:
Describe.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
EmptyQueryResponse.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final case class ErrorResponse(info: Map[Char, String]) extends BackendMessage

Attributes

Companion:
object
Source:
ErrorResponse.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
ErrorResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class Execute(portal: String, maxRows: Int) extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
Execute.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Execute

Attributes

Companion:
class
Source:
Execute.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Execute.type
case object Flush extends ConstFrontendMessage

Attributes

Source:
Flush.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Flush.type
sealed trait FrontendMessage

Attributes

Source:
FrontendMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Bind
class Close
object CopyFail.type
object Flush.type
object Sync.type
object Terminate.type
class Describe
class Execute
class Parse
class Query
case object NoData extends BackendMessage

Attributes

Source:
NoData.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
NoData.type
final case class NoticeResponse(info: Map[Char, String]) extends BackendMessage

Attributes

Companion:
object
Source:
NoticeResponse.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
NoticeResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Source:
NotificationResponse.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
NotificationResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ParameterDescription(oids: List[Int]) extends BackendMessage

Attributes

Companion:
object
Source:
ParameterDescription.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
ParameterDescription.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ParameterStatus(name: String, value: String) extends BackendMessage

Attributes

Companion:
object
Source:
ParameterStatus.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
ParameterStatus.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class Parse(name: String, sql: String, types: List[Int]) extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
Parse.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Parse

Attributes

Companion:
class
Source:
Parse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Parse.type
case object ParseComplete extends BackendMessage

Attributes

Source:
ParseComplete.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
abstract case class PasswordMessage extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
PasswordMessage.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
PasswordMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case object PortalSuspended extends BackendMessage

Attributes

Source:
PortalSuspended.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
case class Query(sql: String) extends TaggedFrontendMessage

Attributes

Companion:
object
Source:
Query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Query

Attributes

Companion:
class
Source:
Query.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Query.type
case class ReadyForQuery(status: TransactionStatus) extends BackendMessage

Attributes

Companion:
object
Source:
ReadyForQuery.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
ReadyForQuery.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class RowData(fields: List[Option[String]]) extends BackendMessage

Attributes

Companion:
object
Source:
RowData.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object RowData

Attributes

Companion:
class
Source:
RowData.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
RowData.type
case class RowDescription(fields: List[Field]) extends BackendMessage

Attributes

Companion:
object
Source:
RowDescription.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
RowDescription.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SASLInitialResponse(mechanism: String, initialResponse: ByteVector) extends TaggedFrontendMessage

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
SASLInitialResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SASLResponse(response: ByteVector) extends TaggedFrontendMessage

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
SASLResponse.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class StartupMessage(user: String, database: String, parameters: Map[String, String]) extends UntaggedFrontendMessage

Attributes

Companion:
object
Source:
StartupMessage.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
StartupMessage.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case object Sync extends ConstFrontendMessage

Attributes

Source:
Sync.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Sync.type
abstract class TaggedFrontendMessage(tag: Byte) extends FrontendMessage

Attributes

Source:
FrontendMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Bind
class Close
object CopyFail.type
object Flush.type
object Sync.type
object Terminate.type
class Describe
class Execute
class Parse
class Query
case object Terminate extends ConstFrontendMessage

Attributes

Source:
Terminate.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
final case class UnknownMessage(tag: Byte, data: ByteVector) extends BackendMessage

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
UnknownMessage.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source:
FrontendMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Value members

Concrete fields

Attributes

Source:
package.scala

Implicits

Implicits

final implicit def CodecOps[A](self: Codec[A]): CodecOps[A]

Attributes

Source:
package.scala

Attributes

Source:
package.scala