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. def close(after: Duration): Future[Unit]

    Definition Classes
    Closable
  10. final def close(): Future[Unit]

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

    Close a prepared statement on the server.

    Close a prepared statement on the server.

    returns

    a Future with an OK value if successful.

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

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

    Definition Classes
    AnyRef → Any
  14. 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.

  15. val factory: ServiceFactory[Request, Result]

  16. def finalize(): Unit

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

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

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

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

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

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

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

    Checks if the server is alive.

    Checks if the server is alive.

    returns

    a Future with an OK value if the server is alive.

  24. 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]

  25. 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.

  26. 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.

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

    Sends a query without using prepared statements.

    Sends a query without using prepared statements.

    sql

    the sql string to be sent to the server

    returns

    a Future containing the Result object from the query.

  28. 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)

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

    Sends a query that presumably returns a ResultSet.

    Sends a query that presumably returns a ResultSet. Each row is mapped to f, a function from Row => T.

    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 the result of f applied to each row.

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

    Changes the default schema.

    Changes the default schema.

    schema

    The new schema to use.

    returns

    a Future with an OK value if successful.

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped