com.websudos.morpheus.query

SQLResultsQuery

trait SQLResultsQuery[T <: BaseTable[T, _], R, DBRow <: Row, DBResult <: Result] extends SQLQuery[T, R]

Linear Supertypes
SQLQuery[T, R], ResultSetOperations, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SQLResultsQuery
  2. SQLQuery
  3. ResultSetOperations
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fromRow(r: Row): R

  2. abstract def get()(implicit client: Client[DBRow, DBResult]): Future[Option[R]]

    Get the result of an operation as a Twitter Future.

    Get the result of an operation as a Twitter Future.

    client

    The MySQL client in use.

    returns

    A Twitter future wrapping the result.

  3. abstract def one()(implicit client: Client[DBRow, DBResult]): Future[Option[R]]

    Returns the first row from the select ignoring everything else.

    Returns the first row from the select ignoring everything else.

    client

    The MySQL client in use.

    returns

  4. abstract val query: SQLBuiltQuery

    Attributes
    protected[com.websudos.morpheus]
    Definition Classes
    SQLQuery

Concrete 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. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def execute[DBRow <: Row, DBResult <: Result]()(implicit client: Client[DBRow, DBResult]): Future[DBResult]

    This method is used when the query is not returning a data result, such as an UPDATE query.

    This method is used when the query is not returning a data result, such as an UPDATE query. While it will accurately monitor the execution of the query and the Future will complete when the task is "done" in SQL, the type-safe mapping of the result is not necessary at this point.

    The below implementation will pass type arguments explicitly to the covariant constructor.

    client

    The Finagle MySQL client in the scope of which to execute the query.

    returns

    A Scala Future wrapping a default Finagle MySQL query result object.

    Definition Classes
    SQLQuery
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def future[DBRow <: Row, DBResult <: Result]()(implicit client: Client[DBRow, DBResult]): Future[DBResult]

    This method is used when the query is not returning a data result, such as an UPDATE query.

    This method is used when the query is not returning a data result, such as an UPDATE query. While it will accurately monitor the execution of the query and the Future will complete when the task is "done" in SQL, the type-safe mapping of the result is not necessary at this point.

    This method duplicates the API to provide an alternative to people who don't use Twitter Futures or any Twitter libraries in their stack. Until now anyway. Twitter has been gossiping about making com.twitter.util.Future extend scala.concurrent.Future, but until such times a dual API is best.

    The below implementation will pass type arguments explicitly to the covariant constructor.

    client

    The Finagle MySQL client in the scope of which to execute the query.

    returns

    A Scala Future wrapping a default Finagle MySQL query result object.

    Definition Classes
    SQLQuery
  13. final def getClass(): Class[_]

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

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

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

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

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

    Definition Classes
    AnyRef
  19. def queryString: String

    A simple forwarding method to prevent some extra boiler-plate during tests.

    A simple forwarding method to prevent some extra boiler-plate during tests. This will serialise an existing query to the relevant SQL string.

    returns

    A string representing the query encoded in SQL.

    Definition Classes
    SQLQuery
  20. def queryToFuture[DBRow <: Row, DBResult <: Result](query: String)(implicit client: Client[DBRow, DBResult]): Future[DBResult]

    Attributes
    protected[this]
    Definition Classes
    ResultSetOperations
  21. def queryToScalaFuture[DBRow <: Row, DBResult <: Result](query: String)(implicit client: Client[DBRow, DBResult]): Future[DBResult]

    Attributes
    protected[this]
    Definition Classes
    ResultSetOperations
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. def twitterToScala[A](future: Future[A]): Future[A]

    Attributes
    protected[this]
    Definition Classes
    ResultSetOperations
  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
    @throws( ... )

Inherited from SQLQuery[T, R]

Inherited from ResultSetOperations

Inherited from AnyRef

Inherited from Any

Ungrouped