Provider

ldbc.Provider
trait Provider[F[_]]

Trait for aggregating settings for building connections and providing connections to users.

Type parameters

F

the effect type

Attributes

Deprecated
true
Source
Provider.scala
Graph
Supertypes
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().use { connection =>
   ???
 }

Attributes

Source
Provider.scala

Create a connector managed by Resource.

Create a connector managed by Resource.

 provider.createConnector().use { connector =>
   ???
 }

Attributes

Source
Provider.scala
def use[A](f: (Connector[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

Source
Provider.scala