com.outworkers.phantom.database

Database

abstract class Database[DB <: Database[DB]] extends AnyRef

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

Instance Constructors

  1. new Database(connector: CassandraConnection)(implicit helper: DatabaseHelper[DB])

Type Members

  1. trait Connector extends connectors.CassandraConnection.Connector

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. val connector: CassandraConnection

  9. def create(timeout: FiniteDuration = defaultTimeout)(implicit ex: ExecutionContextExecutor): Seq[datastax.driver.core.ResultSet]

    A blocking method that will create all the tables.

    A blocking method that will create all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    timeout

    The timeout for the initialisation call. Defaults to com.outworkers.phantom.database.Database#defaultTimeout

    returns

    A sequence of result sets, where every result is the result of a single create operation.

  10. def createAsync()(implicit ex: ExecutionContextExecutor): Future[Seq[datastax.driver.core.ResultSet]]

    An asynchronous method that will create all the tables.

    An asynchronous method that will create all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    returns

    A sequence of result sets, where every result is the result of a single create operation.

  11. def drop(timeout: FiniteDuration = defaultTimeout)(implicit ex: ExecutionContextExecutor): Seq[datastax.driver.core.ResultSet]

    A blocking method that will drop all the tables.

    A blocking method that will drop all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    timeout

    The timeout for the initialisation call. Defaults to com.outworkers.phantom.database.Database#defaultTimeout

    returns

    A sequence of result sets, where every result is the result of a single drop operation.

  12. def dropAsync()(implicit ex: ExecutionContextExecutor): Future[Seq[datastax.driver.core.ResultSet]]

    An async method that will drop all the tables.

    An async method that will drop all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    returns

    A sequence of result sets, where every result is the result of a single drop operation.

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

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

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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. implicit lazy val session: Session

  23. def shutdown(): Unit

  24. implicit val space: KeySpace

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

    Definition Classes
    AnyRef
  26. val tables: Seq[CassandraTable[_, _]]

  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def truncate(timeout: FiniteDuration = defaultTimeout)(implicit ex: ExecutionContextExecutor): Seq[datastax.driver.core.ResultSet]

    A blocking method that will truncate all the tables.

    A blocking method that will truncate all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    timeout

    The timeout for the initialisation call. Defaults to com.outworkers.phantom.database.Database#defaultTimeout

    returns

    A sequence of result sets, where every result is the result of a single truncate operation.

  29. def truncateAsync()(implicit ex: ExecutionContextExecutor): Future[Seq[datastax.driver.core.ResultSet]]

    An async method that will truncate all the tables.

    An async method that will truncate all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    returns

    A sequence of result sets, where every result is the result of a single truncate operation.

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped