Packages

object ConnectionSource

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

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

Type Members

  1. trait Service extends AnyRef
  2. abstract class ServiceBase extends Service

    ConnectionSource with standard behavior.

    ConnectionSource with standard behavior. Children class need to implement getConnection.

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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def fromConnection(errorStrategiesRef: ErrorStrategiesRef)(implicit trace: Trace): ZLayer[Connection, Nothing, ConnectionSource]

    As fromConnection, but provides a default ErrorStrategiesRef.

    As fromConnection, but provides a default ErrorStrategiesRef.

    When a Database method is called with no available implicit ErrorStrategiesRef, the ErrorStrategiesRef in argument will be used.

  9. def fromConnection(implicit trace: Trace): ZLayer[Connection, Nothing, ConnectionSource]

    ConnectionSource created from a single connection.

    ConnectionSource created from a single connection. If several operations are launched concurrently, they will wait for the connection to be available (see the Semaphore documentation for details).

    When a Database method is called with no available implicit ErrorStrategiesRef, the default ErrorStrategiesRef will be used.

  10. def fromDatasource(errorStrategies: ErrorStrategiesRef)(implicit trace: Trace): ZLayer[DataSource, Nothing, ConnectionSource]

    As fromDatasource, but provides a default ErrorStrategiesRef.

    As fromDatasource, but provides a default ErrorStrategiesRef.

    When a Database method is called with no available implicit ErrorStrategiesRef, the ErrorStrategiesRef in argument will be used.

  11. def fromDatasource(implicit trace: Trace): ZLayer[DataSource, Nothing, ConnectionSource]

    ConnectionSource created from a DataSource.

    ConnectionSource created from a DataSource. Any connection pool you use should be able to provide a DataSource.

    When a Database method is called with no available implicit ErrorStrategiesRef, the default ErrorStrategiesRef will be used.

  12. def fromDatasourceAndErrorStrategies(implicit trace: Trace): ZLayer[DataSource with ErrorStrategies, Nothing, ConnectionSource]

    As fromDatasource(ErrorStrategiesRef), but an ErrorStrategies is provided through a layer instead of as a parameter.

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. 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 AnyRef

Inherited from Any

Ungrouped