com.twitter.finagle.exp.mysql

Client

class Client extends Closable

Linear Supertypes
Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Client
  2. Closable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(factory: ServiceFactory[Request, Result])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def close(deadline: Time): Future[Unit]

    Close the ServiceFactory and its underlying resources.

    Close the ServiceFactory and its underlying resources.

    Definition Classes
    Client → Closable
  9. final def close(): Future[Unit]

    Definition Classes
    Closable
  10. def closeStatement(ps: PreparedStatement): Future[Result]

    Close a prepared statement on the server.

    Close a prepared statement on the server.

    returns

    OK result.

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def execute(ps: PreparedStatement): Future[Result]

    Execute a prepared statement on the server.

    Execute a prepared statement on the server. Set the parameters field or use the update(index, param) method on the prepared statement object to change parameters.

    returns

    a Future containing an OK Result or a ResultSet for queries that return rows.

  14. val factory: ServiceFactory[Request, Result]

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def ping: Future[Result]

  23. def prepare(sql: String): Future[PreparedStatement]

    Sends a query to server to be prepared for execution.

    Sends a query to server to be prepared for execution.

    sql

    A query to be prepared on the server.

    returns

    a Future[PreparedStatement]

  24. def prepareAndExecute(sql: String, queryParams: Any*): Future[(PreparedStatement, Result)]

    Combines the prepare and execute operations.

    Combines the prepare and execute operations.

    returns

    a Future[(PreparedStatement, Result)] tuple.

  25. def prepareAndSelect[T](sql: String, queryParams: Any*)(f: (Row) ⇒ T): Future[(PreparedStatement, Seq[T])]

    Combines the prepare and select operations.

    Combines the prepare and select operations.

    returns

    a Future[(PreparedStatement, Seq[T])] tuple.

  26. def query(sql: String): Future[Result]

    Sends a query to the server without using prepared statements.

    Sends a query to the server without using prepared statements.

    sql

    A sql statement to be sent to the server.

    returns

    a Future containing an OK Result or a ResultSet for queries that return rows.

  27. def select[T](ps: PreparedStatement)(f: (Row) ⇒ T): Future[Seq[T]]

    Send a SELECT query that returns a ResultSet.

    Send a SELECT query that returns a ResultSet. For each row in the ResultSet, call f on the row and return the results. If a prepared statement that does not represent a SELECT query is passed in, an empty Seq is returned.

    ps

    A prepared statement.

    f

    A function from Row to any type T.

    returns

    a Future of Seq[T] that contains rows.map(f)

  28. def select[T](sql: String)(f: (Row) ⇒ T): Future[Seq[T]]

    Send a query that presumably returns a ResultSet.

    Send a query that presumably returns a ResultSet. For each row in the ResultSet, call f on the row and return the Seq of results. If the query result does not contain a ResultSet, the query is executed and an empty Seq is returned.

    sql

    A sql statement that returns a result set.

    f

    A function from Row to any type T.

    returns

    a Future of Seq[T] that contains rows.map(f)

  29. def selectDB(schema: String): Future[Result]

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped