JdbcTestDB

com.typesafe.slick.testkit.util.JdbcTestDB
abstract class JdbcTestDB(val confName: String) extends SqlTestDB

Attributes

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

Members list

Type members

Types

type Profile = JdbcProfile

Attributes

Source
TestDB.scala

Value members

Concrete methods

override def assertNotTablesExist(tables: String*): DBIOAction[Unit, NoStream, Effect]

Attributes

Definition Classes
Source
TestDB.scala
override def assertTablesExist(tables: String*): DBIOAction[Unit, NoStream, Effect]

Attributes

Definition Classes
Source
TestDB.scala
final def blockingRunOnSession[R](f: ExecutionContext => DBIOAction[R, NoStream, Nothing])(implicit session: Session): R

Attributes

Source
TestDB.scala
def canGetLocalTables: Boolean

Attributes

Source
TestDB.scala
def createSingleSessionDatabase(implicit session: Session, executor: AsyncExecutor): Database

Attributes

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

Source
TestDB.scala
final def getLocalSequences(implicit session: Session): Vector[String]

Attributes

Source
TestDB.scala
final def getLocalTables(implicit session: Session): Vector[String]

Attributes

Source
TestDB.scala
def localSequences(implicit ec: ExecutionContext): DBIO[Vector[String]]

Attributes

Source
TestDB.scala
def localTables(implicit ec: ExecutionContext): DBIO[Vector[String]]

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

Abstract fields

val jdbcDriver: String

Attributes

Source
TestDB.scala

Concrete fields

val confName: String

The test database name

The test database name

Attributes

Source
TestDB.scala
lazy val database: DatabaseFactory

Attributes

Source
TestDB.scala

Inherited fields

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