Packages

trait ModuleOps[Connection, Database <: ServiceOps[Connection]] extends DatabaseOps[Connection, Database]

API for commodity methods needing a Database.

Linear Supertypes
DatabaseOps[Connection, Database], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModuleOps
  2. DatabaseOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def autoCommit[R, E, A](zio: => ZIO[Connection with R, E, A])(implicit errorStrategies: ErrorStrategiesRef = ErrorStrategies.Parent, trace: Trace): ZIO[R with Database, Either[DbException, E], A]

    Provides that ZIO with a Connection.

    Provides that ZIO with a Connection. All DB action in the ZIO will be auto-committed. Failures in the initial ZIO will be wrapped in a Right in the error case of the resulting ZIO, with connection errors resulting in a failure with the exception wrapped in a Left.

    This method should be implemented by subclasses, to provide the connection.

    Definition Classes
    DatabaseOps
  2. abstract def transaction[R, E, A](zio: => ZIO[Connection with R, E, A], commitOnFailure: => Boolean = false)(implicit errorStrategies: ErrorStrategiesRef = ErrorStrategies.Parent, trace: Trace): ZIO[R with Database, Either[DbException, E], A]

    Provides that ZIO with a Connection.

    Provides that ZIO with a Connection. A transaction will be opened before any actions in the ZIO, and closed after. It will commit only if the ZIO succeeds, and rollback otherwise. Failures in the initial ZIO will be wrapped in a Right in the error case of the resulting ZIO, with connection errors resulting in a failure with the exception wrapped in a Left.

    This method should be implemented by subclasses, to provide the connection.

    Definition Classes
    DatabaseOps

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def autoCommitOrDie[R, E, A](zio: => ZIO[Connection with R, E, A])(implicit errorStrategies: ErrorStrategiesRef = ErrorStrategies.Parent, trace: Trace): ZIO[R with Database, E, A]

    As autoCommit, but errors when handling the connections are treated as defects instead of failures.

    As autoCommit, but errors when handling the connections are treated as defects instead of failures.

    Definition Classes
    DatabaseOps
  6. final def autoCommitOrWiden[R, E >: DbException, A](zio: => ZIO[Connection with R, E, A])(implicit errorStrategies: ErrorStrategiesRef = ErrorStrategies.Parent, trace: Trace): ZIO[R with Database, E, A]

    As autoCommit, but exceptions are simply widened to a common failure type.

    As autoCommit, but exceptions are simply widened to a common failure type. The resulting failure type is a superclass of both DbException and the error type of the inital ZIO.

    Definition Classes
    DatabaseOps
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def transactionOrDie[R, E, A](zio: => ZIO[Connection with R, E, A], commitOnFailure: => Boolean = false)(implicit errorStrategies: ErrorStrategiesRef = ErrorStrategies.Parent, trace: Trace): ZIO[R with Database, E, A]

    As transaction, but errors when handling the connections are treated as defects instead of failures.

    As transaction, but errors when handling the connections are treated as defects instead of failures.

    Definition Classes
    DatabaseOps
  19. final def transactionOrWiden[R, E >: DbException, A](zio: => ZIO[Connection with R, E, A], commitOnFailure: => Boolean = false)(implicit errorStrategies: ErrorStrategiesRef = ErrorStrategies.Parent, trace: Trace): ZIO[R with Database, E, A]

    As transaction, but exceptions are simply widened to a common failure type.

    As transaction, but exceptions are simply widened to a common failure type. The resulting failure type is a superclass of both DbException and the error type of the inital ZIO.

    Definition Classes
    DatabaseOps
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. 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

Inherited from DatabaseOps[Connection, Database]

Inherited from AnyRef

Inherited from Any

Ungrouped