com.typesafe.slick.testkit.util

TestDB

trait TestDB extends AnyRef

Describes a database against which you can run TestKit tests. It includes features such as reading the configuration file, setting up a DB connection, removing DB files left over by a test run, etc.

Source
TestDB.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestDB
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Driver <: BasicDriver

Abstract Value Members

  1. abstract val confName: String

    The test database name

  2. abstract def createDB(): scala.slick.profile.BasicProfile.Backend.Database

    Create the Database object for this test database configuration

  3. abstract val driver: Driver

    The Slick driver for the database

  4. abstract def dropUserArtifacts(implicit session: scala.slick.profile.BasicProfile.Backend.Session): Unit

    This method is called between individual test methods to remove all database artifacts that were created by the test.

Concrete Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from TestDB to any2stringadd[TestDB] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TestDB, B)

    Implicit information
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  7. def capabilities: Set[Capability]

    The capabilities of the Slick driver, possibly modified for this test configuration.

  8. def cleanUpAfter(): Unit

    This method is called to clean up after running all tests.

    This method is called to clean up after running all tests. It defaults to cleanUpBefore().

  9. def cleanUpBefore(): Unit

    This method is called to clean up before running all tests.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (TestDB) ⇒ Boolean, msg: ⇒ Any): TestDB

    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (TestDB) ⇒ Boolean): TestDB

    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): TestDB

    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): TestDB

    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from TestDB to StringFormat[TestDB] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  21. def isEnabled: Boolean

    Check if this test database is enabled

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isPersistent: Boolean

    Indicates whether the database persists after closing the last connection

  24. def isShared: Boolean

    Indicates whether the database's sessions have shared state.

    Indicates whether the database's sessions have shared state. When a database is shared but not persistent, Testkit keeps a session open to make it persistent.

  25. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  28. lazy val profile: Driver.profile.type

    The Slick driver for the database

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (TestDB, B)

    Implicit information
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TestDB to any2stringadd[TestDB]

Inherited by implicit conversion StringFormat from TestDB to StringFormat[TestDB]

Inherited by implicit conversion Ensuring from TestDB to Ensuring[TestDB]

Inherited by implicit conversion ArrowAssoc from TestDB to ArrowAssoc[TestDB]

Ungrouped