Packages

c

slick.memory.HeapBackend

HeapDatabaseDef

class HeapDatabaseDef[F[_]] extends BasicDatabaseDef[F] with AnyHeapDatabaseDef

Source
HeapBackend.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HeapDatabaseDef
  2. AnyHeapDatabaseDef
  3. BasicDatabaseDef
  4. AnyDatabaseDef
  5. Closeable
  6. AutoCloseable
  7. AnyRef
  8. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HeapDatabaseDef(controls: Controls[F], actionListener: ActionListener[F] = ActionListener.noop[F])(implicit asyncF: Async[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ->[B](y: B): (HeapDatabaseDef[F], B)
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toArrowAssoc[HeapDatabaseDef[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. val actionListener: ActionListener[F]
    Definition Classes
    HeapDatabaseDefBasicDatabaseDef
  6. final def admissionControl: AdmissionControl[F]
    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. implicit val asyncF: Async[F]
    Definition Classes
    HeapDatabaseDefBasicDatabaseDef
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. def close(): Unit

    Free all resources allocated by Slick for this Database.

    Free all resources allocated by Slick for this Database.

    Implementations must be idempotent (safe to call more than once) and thread-safe (safe to call concurrently from multiple threads). A second or concurrent call must not throw an exception and must not corrupt the state of any remaining resources.

    Definition Classes
    HeapDatabaseDefBasicDatabaseDef → Closeable → AutoCloseable
  11. def commitTransaction(session: Session, previousIsolationLevel: Option[Int]): Unit

    Commit the transaction on the session, restoring the given isolation level if provided.

    Commit the transaction on the session, restoring the given isolation level if provided. Override in JdbcBackend.

    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  12. final def connectionArbiter: ConnectionArbiter[F]
    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  13. final def controlStatus: F[ControlStatus]
    Definition Classes
    BasicDatabaseDef
  14. val controls: Controls[F]

    Concurrency controls for admission and connection-slot arbitration.

    Concurrency controls for admission and connection-slot arbitration.

    Definition Classes
    HeapDatabaseDefBasicDatabaseDef
  15. def createSession(): Session

    Create a new session.

    Create a new session. The session needs to be closed explicitly by calling its close() method.

    Definition Classes
    HeapDatabaseDefBasicDatabaseDefAnyDatabaseDef
  16. def createTable(name: String, columns: IndexedSeq[Column], indexes: IndexedSeq[Index], constraints: IndexedSeq[Constraint]): HeapTable
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  17. def createTableIfNotExists(name: String, columns: IndexedSeq[Column], indexes: IndexedSeq[Index], constraints: IndexedSeq[Constraint]): HeapTable
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  18. def dropTable(name: String): Unit
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  19. def dropTableIfExists(name: String): Unit
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  20. def ensuring(cond: (HeapDatabaseDef[F]) => Boolean, msg: => Any): HeapDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toEnsuring[HeapDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (HeapDatabaseDef[F]) => Boolean): HeapDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toEnsuring[HeapDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: => Any): HeapDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toEnsuring[HeapDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): HeapDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toEnsuring[HeapDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  27. def getTable(name: String): HeapTable
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  28. def getTables: IndexedSeq[HeapTable]
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  30. def interpret[R](a: DBIOAction[R, NoStream, Nothing], ctx: Ref[F, HeapBackend.ExecState]): F[R]

    The core recursive interpreter for DBIOAction values.

    The core recursive interpreter for DBIOAction values.

    - SynchronousDatabaseAction steps run in F.blocking on the CE3 blocking pool. - No explicit stack-level tracking: CE3 flatMap is stack-safe. - Execution state (session, transaction depth, pinning) is tracked in a Ref[F, ExecState]. - Cancellation triggers rollback via guaranteeCase.

    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  31. def interpretStream[T](a: DBIOAction[_, Streaming[T], Nothing], ctx: Ref[F, HeapBackend.ExecState]): F[(CloseableIterator[T], (Option[Throwable]) => F[Unit])]
    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  36. def rollbackTransaction(session: Session, previousIsolationLevel: Option[Int]): Unit

    Rollback the transaction on the session, restoring the given isolation level if provided.

    Rollback the transaction on the session, restoring the given isolation level if provided. Override in JdbcBackend.

    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  37. final def run[R](a: DBIOAction[R, NoStream, Nothing]): F[R]

    Run a DBIOAction and return the result in F[R].

    Run a DBIOAction and return the result in F[R].

    Definition Classes
    BasicDatabaseDef
  38. def sessionAsContext(session: Session, state: HeapBackend.ExecState): Context

    Wrap a Session and ExecState as a Context for passing to SynchronousDatabaseAction.run.

    Wrap a Session and ExecState as a Context for passing to SynchronousDatabaseAction.run.

    Attributes
    protected
    Definition Classes
    HeapDatabaseDefBasicDatabaseDef
  39. def setupTransaction(session: Session, isolationLevel: Option[Int]): Option[Int]

    Set up a transaction on a freshly-acquired connection.

    Set up a transaction on a freshly-acquired connection. Returns the previous isolation level (to be restored after the transaction ends), or None if the isolation level was not changed. Override in JdbcBackend.

    Attributes
    protected
    Definition Classes
    BasicDatabaseDef
  40. final def stream[T](a: DBIOAction[_, Streaming[T], Nothing]): Resource[F, Iterator[T]]

    Open a streaming DBIOAction as a Resource-backed Iterator.

    Open a streaming DBIOAction as a Resource-backed Iterator.

    Finalizer order is: 1) iterator.close() 2) transactional / pin-scope cleanup 3) session / permit release 4) inflight-release

    Definition Classes
    BasicDatabaseDef
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. val tables: HashMap[String, HeapTable]
    Attributes
    protected
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. def truncateTable(name: String): Unit
    Definition Classes
    HeapDatabaseDefAnyHeapDatabaseDef
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toStringFormat[HeapDatabaseDef[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (HeapDatabaseDef[F], B)
    Implicit
    This member is added by an implicit conversion from HeapDatabaseDef[F] toArrowAssoc[HeapDatabaseDef[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyHeapDatabaseDef

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromHeapDatabaseDef[F] to StringFormat[HeapDatabaseDef[F]]

Inherited by implicit conversion Ensuring fromHeapDatabaseDef[F] to Ensuring[HeapDatabaseDef[F]]

Inherited by implicit conversion ArrowAssoc fromHeapDatabaseDef[F] to ArrowAssoc[HeapDatabaseDef[F]]

Ungrouped