com.twitter.finagle.exp

mysql

package mysql

Visibility
  1. Public
  2. All

Type Members

  1. class BinaryEncodedRow extends Row

    Defines a Row where the data is presumed to be encoded with the mysql binary protocol.

  2. case class ByteValue(b: Byte) extends Value with Product with Serializable

  3. case class Capability(mask: Int) extends Product with Serializable

  4. class Client extends Closable

  5. class ClientDispatcher extends Service[Request, Result]

    A ClientDispatcher that implements the mysql client/server protocol.

  6. class ClientError extends Exception

  7. case class CloseRequest(stmtId: Int) extends CommandRequest with Product with Serializable

    A CloseRequest deallocates a prepared statement on the server.

  8. abstract class CommandRequest extends Request

    A command request is a request initiated by the client and has a cmd byte associated with it.

  9. trait Decoder[T <: Result] extends (Packet) ⇒ Try[T]

    A decoder for Results contained in a single packet.

  10. case class DoubleValue(d: Double) extends Value with Product with Serializable

  11. case class EOF(warnings: Short, serverStatus: Short) extends Result with Product with Serializable

  12. case class Error(code: Short, sqlState: String, message: String) extends Result with Product with Serializable

  13. case class ExecuteRequest(ps: PreparedStatement, flags: Byte = 0, iterationCount: Int = 1) extends CommandRequest with Product with Serializable

    Uses the binary protocol to build an execute request for a prepared statement.

  14. case class Field(catalog: String, db: String, table: String, origTable: String, name: String, origName: String, charset: Short, displayLength: Int, fieldType: Short, flags: Short, decimals: Byte) extends Result with Product with Serializable

  15. case class FloatValue(f: Float) extends Value with Product with Serializable

  16. case class Handshake(username: Option[String] = scala.None, password: Option[String] = scala.None, database: Option[String] = scala.None, clientCap: Capability = Capability.baseCap, charset: Short = Charset.Utf8_general_ci, maxPacketSize: StorageUnit = ...) extends (HandshakeInit) ⇒ Try[HandshakeResponse] with Product with Serializable

    Bridges a server handshake (HandshakeInit) with a client handshake (HandshakeResponse) using the given parameters.

  17. case class HandshakeInit(protocol: Byte, version: String, threadId: Int, salt: Array[Byte], serverCap: Capability, charset: Short, status: Short) extends Result with Product with Serializable

  18. case class HandshakeResponse(username: Option[String], password: Option[String], database: Option[String], clientCap: Capability, salt: Array[Byte], serverCap: Capability, charset: Short, maxPacketSize: Int) extends Request with Product with Serializable

    Client response sent during connection phase.

  19. class IncompatibleServerError extends Exception

  20. case class IntValue(i: Int) extends Value with Product with Serializable

  21. case class LongValue(l: Long) extends Value with Product with Serializable

  22. case class LostSyncException(underlying: Throwable) extends RuntimeException with Product with Serializable

  23. case class OK(affectedRows: Long, insertId: Long, serverStatus: Int, warningCount: Int, message: String) extends Result with Product with Serializable

  24. case class PrepareOK(statementId: Int, numOfCols: Int, numOfParams: Int, warningCount: Int, columns: Seq[Field], params: Seq[Field]) extends Result with Product with Serializable

  25. case class PrepareRequest(sqlStatement: String) extends SimpleCommandRequest with Product with Serializable

    Allocates a prepared statement on the server from the passed in query string.

  26. case class PreparedStatement(metadata: PrepareOK) extends Product with Serializable

  27. case class QueryRequest(sqlStatement: String) extends SimpleCommandRequest with Product with Serializable

    A QueryRequest is used to send the server a text-based query that is executed immediately.

  28. case class RawValue(typ: Short, charset: Short, isBinary: Boolean, bytes: Array[Byte]) extends Value with Product with Serializable

    A RawValue contains the raw bytes that represent a value and enough meta data to decode the bytes.

  29. sealed trait Request extends AnyRef

  30. sealed trait Result extends AnyRef

  31. case class ResultSet(fields: Seq[Field], rows: Seq[Row]) extends Result with Product with Serializable

  32. trait Row extends AnyRef

    Defines an interface that allows for easily reading the values in a mysql row.

  33. case class ServerError(code: Short, sqlState: String, message: String) extends Exception with Product with Serializable

  34. case class ShortValue(s: Short) extends Value with Product with Serializable

  35. class SimpleCommandRequest extends CommandRequest

    Defines a request that encodes the command byte and associated data into a packet.

  36. class StringEncodedRow extends Row

    Defines a row where the data is presumed to be encoded with the mysql text-based protocol.

  37. case class StringValue(s: String) extends Value with Product with Serializable

  38. case class UseRequest(dbName: String) extends SimpleCommandRequest with Product with Serializable

    A UseRequest is used to change the default schema of the connection.

  39. sealed trait Value extends AnyRef

    Defines a Value ADT that represents the domain of values received from a mysql server.

Value Members

  1. object BigDecimalValue

  2. object Capability extends Serializable

  3. object Charset

  4. object Client

  5. object ClientDispatcher

  6. object ClientInternalGreet extends Request with Product with Serializable

    NOOP Request used internally by this client.

  7. object CloseStatementOK extends OK

    Used internally to synthesize a response from the server when sending a prepared statement CloseRequest

  8. object Command

  9. object DateValue

  10. object EOF extends Decoder[EOF] with Serializable

    Represents and EOF result received from the server which contains any warnings and the server status.

  11. object EmptyValue extends Value with Product with Serializable

  12. object Error extends Decoder[Error] with Serializable

    Represents the Error Packet received from the server and the data sent along with it.

  13. object Field extends Decoder[Field] with Serializable

    Represents the column meta-data associated with a query.

  14. object HandshakeInit extends Decoder[HandshakeInit] with Serializable

    First result received from the server as part of the connection phase.

  15. object IncompatibleCharset extends IncompatibleServerError with Product with Serializable

  16. object IncompatibleVersion extends IncompatibleServerError with Product with Serializable

  17. object NullValue extends Value with Product with Serializable

  18. object OK extends Decoder[OK] with Serializable

    Represents the OK Packet received from the server.

  19. object PingRequest extends SimpleCommandRequest with Product with Serializable

    A request to check if the server is alive.

  20. object PrepareOK extends Decoder[PrepareOK] with Serializable

    Meta data returned from the server in response to a prepared statement initialization request COM_STMT_PREPARE.

  21. object ResultSet extends Serializable

    Resultset returned from the server containing field definitions and rows.

  22. object TimestampValue

  23. object Type

  24. package transport

Ungrouped