Packages

c

slick.memory.DistributedBackend

DistributedDatabaseDef

class DistributedDatabaseDef[F[_]] extends BasicDatabaseDef[F]

Source
DistributedBackend.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DistributedDatabaseDef
  2. BasicDatabaseDef
  3. AnyDatabaseDef
  4. Closeable
  5. AutoCloseable
  6. AnyRef
  7. 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 DistributedDatabaseDef(dbs: Vector[AnyDatabaseDef], 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): (DistributedDatabaseDef[F], B)
    Implicit
    This member is added by an implicit conversion from DistributedDatabaseDef[F] toArrowAssoc[DistributedDatabaseDef[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]
  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]
  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
    DistributedDatabaseDefBasicDatabaseDef → 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
    DistributedDatabaseDefBasicDatabaseDef
  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
    DistributedDatabaseDefBasicDatabaseDefAnyDatabaseDef
  16. val dbs: Vector[AnyDatabaseDef]
  17. def ensuring(cond: (DistributedDatabaseDef[F]) => Boolean, msg: => Any): DistributedDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from DistributedDatabaseDef[F] toEnsuring[DistributedDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (DistributedDatabaseDef[F]) => Boolean): DistributedDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from DistributedDatabaseDef[F] toEnsuring[DistributedDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: => Any): DistributedDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from DistributedDatabaseDef[F] toEnsuring[DistributedDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): DistributedDatabaseDef[F]
    Implicit
    This member is added by an implicit conversion from DistributedDatabaseDef[F] toEnsuring[DistributedDatabaseDef[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  25. def interpret[R](a: DBIOAction[R, NoStream, Nothing], ctx: Ref[F, DistributedBackend.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
  26. def interpretStream[T](a: DBIOAction[_, Streaming[T], Nothing], ctx: Ref[F, DistributedBackend.ExecState]): F[(CloseableIterator[T], (Option[Throwable]) => F[Unit])]
    Attributes
    protected
    Definition Classes
    DistributedDatabaseDefBasicDatabaseDef
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  31. 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
  32. 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
  33. def sessionAsContext(session: Session, state: DistributedBackend.ExecState): Context

    DistributedBackend always uses cats.effect.IO as its effect type.

    DistributedBackend always uses cats.effect.IO as its effect type.

    Attributes
    protected
    Definition Classes
    DistributedDatabaseDefBasicDatabaseDef
  34. 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
  35. 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
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. 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 DistributedDatabaseDef[F] toStringFormat[DistributedDatabaseDef[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): (DistributedDatabaseDef[F], B)
    Implicit
    This member is added by an implicit conversion from DistributedDatabaseDef[F] toArrowAssoc[DistributedDatabaseDef[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 Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromDistributedDatabaseDef[F] to StringFormat[DistributedDatabaseDef[F]]

Inherited by implicit conversion Ensuring fromDistributedDatabaseDef[F] to Ensuring[DistributedDatabaseDef[F]]

Inherited by implicit conversion ArrowAssoc fromDistributedDatabaseDef[F] to ArrowAssoc[DistributedDatabaseDef[F]]

Ungrouped