Packages

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

Bridges a server handshake (HandshakeInit) with a client handshake (HandshakeResponse) using the given parameters. This facilitates the connection phase of the mysql protocol.

username

MySQL username used to login.

password

MySQL password used to login.

database

initial database to use for the session.

clientCap

The capability this client has.

charset

default character established with the server.

enableFoundRows

if the server should return the number of found (matched) rows, not the number of changed rows for UPDATE and INSERT ... ON DUPLICATE KEY UPDATE statements.

maxPacketSize

max size of a command packet that the client intends to send to the server. The largest possible packet that can be transmitted to or from a MySQL 5.5 server or client is 1GB.

returns

A Try[HandshakeResponse] that encodes incompatibility with the server.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Handshake
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Handshake(username: Option[String] = None, password: Option[String] = None, database: Option[String] = None, clientCap: Capability = Capability.baseCap, charset: Short = Utf8_general_ci, enableFoundRows: Boolean = true, maxPacketSize: StorageUnit = 1.gigabyte)

    username

    MySQL username used to login.

    password

    MySQL password used to login.

    database

    initial database to use for the session.

    clientCap

    The capability this client has.

    charset

    default character established with the server.

    enableFoundRows

    if the server should return the number of found (matched) rows, not the number of changed rows for UPDATE and INSERT ... ON DUPLICATE KEY UPDATE statements.

    maxPacketSize

    max size of a command packet that the client intends to send to the server. The largest possible packet that can be transmitted to or from a MySQL 5.5 server or client is 1GB.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Try[HandshakeResponse]) ⇒ A): (HandshakeInit) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(init: HandshakeInit): Try[HandshakeResponse]
    Definition Classes
    Handshake → Function1
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val charset: Short
  8. val clientCap: Capability
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def compose[A](g: (A) ⇒ HandshakeInit): (A) ⇒ Try[HandshakeResponse]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. val database: Option[String]
  12. val enableFoundRows: Boolean
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val maxPacketSize: StorageUnit
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val password: Option[String]
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  24. val username: Option[String]
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from (HandshakeInit) ⇒ Try[HandshakeResponse]

Inherited from AnyRef

Inherited from Any

Ungrouped