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 initConnection: doobie.ConnectionIO[Unit]
    Attributes
    protected
  19. def initPending(): Boolean
  20. def initialised(): Boolean
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val lazyTables: () => Set[DbTable]
  23. val logger: Logger
    Attributes
    protected
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. val onDropSchemaAttempt: AtomicReference[(Db) => Unit]

    Called when the DB schema is about to be dropped.

  28. def onlyAllowDropSchemaWhenDatabaseNameContains(expected: String): Unit
  29. def onlyAllowDropSchemaWhenDatabaseNameEndsWith(suffix: String): Unit
  30. def onlyAllowDropSchemaWhenDatabaseNameIs(expected: String): Unit
  31. def onlyAllowDropSchemaWhenDatabaseNameStartsWith(prefix: String): Unit
  32. def onlyAllowDropSchemaWhenDatabaseNameWhen(allow: (String) => Boolean, errMsg: (String) => String): Unit
  33. def shutdown(): Unit
  34. def singleConnStrategy: Strategy
    Attributes
    protected
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. lazy val tables: Set[DbTable]
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def transactionIsolation: Option[Int]
    Attributes
    protected
  39. def truncateAll(): Unit
  40. def txnStrategy: Strategy

    Rollback everything

    Rollback everything

    Attributes
    protected
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. def withImperativeXA[A](f: (ImperativeXA) => A): A

    Everything runs in a transaction and is automatically rolled back

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