object ConnectionSource
A module able to provide and manage connections. They typically come from a connection pool.
- Alphabetic
- By Inheritance
- ConnectionSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Service extends AnyRef
- abstract class ServiceBase extends Service
ConnectionSource with standard behavior.
ConnectionSource with standard behavior. Children class need to implement
getConnection.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- 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.
- 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.
- 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.
- def fromDatasourceAndErrorStrategies(implicit trace: Trace): ZLayer[DataSource with ErrorStrategies, Nothing, ConnectionSource]
As
fromDatasource(ErrorStrategiesRef), but anErrorStrategiesis provided through a layer instead of as a parameter. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated