Packages

package tranzactio

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

Package Members

  1. package test

Type Members

  1. type ConnectionSource = Service
  2. abstract class DatabaseModuleBase[Connection, Database <: ServiceOps[Connection]] extends ModuleOps[Connection, Database]

    Template implementing the commodity methods for a Db module.

  3. trait DatabaseOps[Connection, R0] extends AnyRef

    Operations for a Database, based on a few atomic operations.

    Operations for a Database, based on a few atomic operations. Can be used both by the actual DB service, or by the DB component where a Database is required in the resulting ZIO.

    R0

    Environment needed to run the operations.

  4. abstract class DatabaseServiceBase[Connection] extends ServiceOps[Connection]

    Template implementing a default transactional mechanism, based on a ConnectionSource.

  5. sealed trait DbException extends Exception

    All exceptions that may happen when working with the DB.

  6. case class ErrorStrategies(openConnection: ErrorStrategy, setAutoCommit: ErrorStrategy, commitConnection: ErrorStrategy, rollbackConnection: ErrorStrategy, closeConnection: ErrorStrategy) extends ErrorStrategiesRef with Product with Serializable

    Contains one ErrorStrategy for each DB operation.

    Contains one ErrorStrategy for each DB operation. Carries a few methods to apply changes to all methods.

    openConnection

    Note that openConnection is a special case. Timeouts should not be handled in ZIO over this method, as that could lead to connection leaks. Therefore, the timeout method specifically ignore openConnection.

  7. sealed trait ErrorStrategiesRef extends AnyRef

    How to handle issues in the various operations of the database.

    How to handle issues in the various operations of the database. Note that this only applies to the operation performed when handling the connection, and not the execution of the requests!

  8. trait ErrorStrategy extends AnyRef

    An ErrorStrategy defines how to handle one of the DB operations (openConnection, commit, etc.) It is typically created starting from the ErrorStrategy object, then applying timeout and retry.

  9. trait Wrapper extends AnyRef

    A specific wrapper package for one specific library (e.g.

    A specific wrapper package for one specific library (e.g. Doobie).

Value Members

  1. object ConnectionSource

    A module able to provide and manage connections.

    A module able to provide and manage connections. They typically come from a connection pool.

  2. object DatabaseOps
  3. object DbException extends Serializable
  4. object ErrorStrategies extends ErrorStrategies

    The ErrorStrategies companion object is the starting point to define an ErrorStrategies, and therefore is defined as a set of empty strategies (no timeout and no retry).

  5. case object ErrorStrategiesParent extends ErrorStrategiesRef with Product with Serializable

    Refer to the parent module, up to the default value in Tranzactio (which is Brutal).

  6. object ErrorStrategy extends ErrorStrategy

    The ErrorStrategy companion object is the starting point to define an ErrorStrategy, and therefore is defined as an empty strategy (no timeout and no retry).

Inherited from AnyRef

Inherited from Any

Ungrouped