All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.finagle.postgres.messages.PgResponses.scala Maven / Gradle / Ivy

package com.twitter.finagle.postgres.messages

/*
 * Response message types.
 */
trait PgResponse

case class SingleMessageResponse(msg: BackendMessage) extends PgResponse

case class Error(msg: Option[String]) extends PgResponse

case object SslSupportedResponse extends PgResponse

case object SslNotSupportedResponse extends PgResponse

case object ParseCompletedResponse extends PgResponse

case object BindCompletedResponse extends PgResponse

case object ReadyForQueryResponse extends PgResponse

sealed trait PasswordEncoding

object ClearText extends PasswordEncoding

case class Md5(salt: Array[Byte]) extends PasswordEncoding

case class PasswordRequired(encoding: PasswordEncoding) extends PgResponse

case class AuthenticatedResponse(params: Map[String, String], processId: Int, secretKey: Int) extends PgResponse

case class Rows(rows: List[DataRow], completed: Boolean) extends PgResponse

case class Field(name: String, format: Int, dataType: Int)

case class RowDescriptions(fields: IndexedSeq[Field]) extends PgResponse

case class Descriptions(params: IndexedSeq[Int], fields: IndexedSeq[Field]) extends PgResponse

case class ParamsResponse(types: IndexedSeq[Int]) extends PgResponse

case class SelectResult(fields: IndexedSeq[Field], rows: List[DataRow]) extends PgResponse

case class CommandCompleteResponse(affectedRows: Int) extends PgResponse




© 2015 - 2025 Weber Informatics LLC | Privacy Policy