ConnectionProvider

ldbc.query.builder.syntax.ConnectionProvider
trait ConnectionProvider[F[_]]

Trait provides a connection method to the database.

Type parameters

F

The effect type

Attributes

Source
ConnectionProvider.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class QueryOps[T]

Members list

Value members

Concrete methods

protected def connectionToHeadOption[T](statement: String, params: Seq[DynamicBinder])(using Kleisli[F, ResultSet[F], T], LogHandler[F]): Kleisli[F, Connection[F], Option[T]]

A method to return the data to be retrieved from the database as Option type. If there are multiple data, the first one is retrieved.

A method to return the data to be retrieved from the database as Option type. If there are multiple data, the first one is retrieved.

Attributes

Source
ConnectionProvider.scala
protected def connectionToList[T](statement: String, params: Seq[DynamicBinder])(using Kleisli[F, ResultSet[F], T], LogHandler[F], FactoryCompat[T, List[T]]): Kleisli[F, Connection[F], List[T]]

Methods for returning an array of data to be retrieved from the database.

Methods for returning an array of data to be retrieved from the database.

Attributes

Source
ConnectionProvider.scala
protected def connectionToUnsafe[T](statement: String, params: Seq[DynamicBinder])(using Kleisli[F, ResultSet[F], T], LogHandler[F]): Kleisli[F, Connection[F], T]

A method to return the data to be retrieved from the database as is. If the data does not exist, an exception is raised. Use the connectionToHeadOption method if you want to retrieve individual data.

A method to return the data to be retrieved from the database as is. If the data does not exist, an exception is raised. Use the connectionToHeadOption method if you want to retrieve individual data.

Attributes

Source
ConnectionProvider.scala