ConnectionProvider

jdbc.connector.ConnectionProvider
See theConnectionProvider companion object
trait ConnectionProvider[F[_]] extends Provider[F]

Attributes

Companion
object
Source
ConnectionProvider.scala
Graph
Supertypes
trait Provider[F]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Create a connection managed by Resource.

Create a connection managed by Resource.

 provider.createConnection().user { connection =>
   ???
 }

Attributes

Source
ConnectionProvider.scala

Inherited and Abstract methods

Handler for outputting logs of process execution using connections.

Handler for outputting logs of process execution using connections.

Attributes

Inherited from:
Provider
Source
Provider.scala
def use[A](f: (Connection[F]) => F[A]): F[A]

Allocates a resource and supplies it to the given function. The resource is released as soon as the resulting F[A] is completed, whether normally or as a raised error.

Allocates a resource and supplies it to the given function. The resource is released as soon as the resulting F[A] is completed, whether normally or as a raised error.

Type parameters

A

the result of applying [F] to

Value parameters

f

the function to apply to the allocated resource

Attributes

Inherited from:
Provider
Source
Provider.scala