RelationalTestDB

com.typesafe.slick.testkit.util.RelationalTestDB
trait RelationalTestDB extends TestDB

Attributes

Source
TestDB.scala
Graph
Supertypes
trait TestDB
class Object
trait Matchable
class Any
Known subtypes
trait SqlTestDB
class JdbcTestDB
class SQLServerDB
class DerbyDB
class H2TestDB
class HsqlDB
class SQLiteTestDB
Show all

Members list

Type members

Types

type Profile <: RelationalProfile

Attributes

Source
TestDB.scala

Value members

Abstract methods

def assertNotTablesExist(tables: String*): DBIO[Unit]

Attributes

Source
TestDB.scala
def assertTablesExist(tables: String*): DBIO[Unit]

Attributes

Source
TestDB.scala

Inherited methods

def capabilities: Set[Capability]

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

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

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def cleanUpAfter(): Unit

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

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

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def cleanUpBefore(): Unit

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

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

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def confOptionalString(path: String): Option[String]

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def confString(path: String): String

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def confStrings(path: String): Seq[String]

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def createDB(): Database

Create the Database object for this test database configuration

Create the Database object for this test database configuration

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def dropUserArtifacts(implicit session: Session): Unit

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

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

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def isEnabled: Boolean

Check if this test database is enabled

Check if this test database is enabled

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def isPersistent: Boolean

Indicates whether the database persists after closing the last connection

Indicates whether the database persists after closing the last connection

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def isShared: Boolean

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.

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.

Attributes

Inherited from:
TestDB
Source
TestDB.scala
def testClasses: Seq[Class[_ <: AsyncTest[_ >: Null <: TestDB]]]

The tests to run for this configuration.

The tests to run for this configuration.

Attributes

Inherited from:
TestDB
Source
TestDB.scala

Inherited fields

val confName: String

The test database name

The test database name

Attributes

Inherited from:
TestDB
Source
TestDB.scala
lazy val config: Config

The test configuration

The test configuration

Attributes

Inherited from:
TestDB
Source
TestDB.scala

The profile for the database

The profile for the database

Attributes

Inherited from:
TestDB
Source
TestDB.scala