TestDb

object TestDb
class Object
trait Matchable
class Any
TestDb.type

Value members

Concrete methods

def ![A](query: ConnectionIO[A]): A
def acquireRealXA(): (ImperativeXA, Locked)

Returns a connection that really commits transactions on completion and writes to the DB.

Returns a connection that really commits transactions on completion and writes to the DB.

Ensure that you call releaseRealXA() after use.

Use with care. Use as a last resort.

def check[A : Analyzable](a: A): Unit
def checkOutput[A : Tag](q: Query0[A])(implicit evidence$2: Tag[A], l: Line): Unit
def checkOutput[A : Tag, B : Tag](q: Query[A, B])(implicit evidence$3: Tag[A], evidence$4: Tag[B], l: Line): Unit
def dropSchema(): Unit

Drops all objects (tables, views, procedures, triggers, ...) in the configured schemas.

Drops all objects (tables, views, procedures, triggers, ...) in the configured schemas.

def init(): Unit
def initPending(): Boolean
def initialised(): Boolean
def onlyAllowDropSchemaWhenDatabaseNameIs(expected: String): Unit
def shutdown(): Unit
def truncateAll(): Unit
def withImperativeXA[A](f: ImperativeXA => A): A

Everything runs in a transaction and is automatically rolled back

Everything runs in a transaction and is automatically rolled back

def withRealXA[A](f: ImperativeXA => A): A

Provides a connection that really commits transactions on completion and writes to the DB.

Provides a connection that really commits transactions on completion and writes to the DB.

Concrete fields

val lazyTables: () => Set[DbTable]
val onDropSchemaAttempt: AtomicReference[Db => Unit]

Called when the DB schema is about to be dropped.

Called when the DB schema is about to be dropped.

lazy val tables: Set[DbTable]