Packages

abstract class TestDb extends AnyRef

Extend this to create your own:

object TestDb extends japgolly.webapputil.db.test.TestDb {

  override protected def cfg: DbConfig =
    xxx

  onlyAllowDropSchemaWhenDatabaseNameEndsWith("_test")

}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestDb
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TestDb()

Abstract Value Members

  1. abstract def cfg: DbConfig
    Attributes
    protected

Concrete Value Members

  1. def ![A](query: doobie.ConnectionIO[A]): A
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def acquireRealXA(): (ImperativeXA, locks.SharedLock.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.

  6. def addShutdownHook: Boolean
    Attributes
    protected
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def check[A](a: A)(implicit arg0: Analyzable[A]): Unit
  9. def checkOutput[A, B](q: doobie.Query[A, B])(implicit arg0: Tag[A], arg1: Tag[B], l: Line): Unit
  10. def checkOutput[A](q: doobie.Query0[A])(implicit arg0: Tag[A], l: Line): Unit
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def dropSchema(): Unit

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

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def init(): Unit
  18. def initPending(): Boolean
  19. def initialised(): Boolean
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val lazyTables: () => Set[DbTable]
  22. val logger: Logger
    Attributes
    protected
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. val onDropSchemaAttempt: AtomicReference[(Db) => Unit]

    Called when the DB schema is about to be dropped.

  27. def onlyAllowDropSchemaWhenDatabaseNameContains(expected: String): Unit
  28. def onlyAllowDropSchemaWhenDatabaseNameEndsWith(suffix: String): Unit
  29. def onlyAllowDropSchemaWhenDatabaseNameIs(expected: String): Unit
  30. def onlyAllowDropSchemaWhenDatabaseNameStartsWith(prefix: String): Unit
  31. def onlyAllowDropSchemaWhenDatabaseNameWhen(allow: (String) => Boolean, errMsg: (String) => String): Unit
  32. def shutdown(): Unit
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. lazy val tables: Set[DbTable]
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def truncateAll(): Unit
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. def withImperativeXA[A](f: (ImperativeXA) => A): A

    Everything runs in a transaction and is automatically rolled back

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

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped