Database

ldbc.dsl.Database
See theDatabase companion object
case class Database[F[_]](databaseType: Type, name: String, host: String, port: Option[Int], connectionF: () => F[Connection[F]], character: Option[Character], collate: Option[Collate[String]], tables: Set[Table[_]])(implicit evidence$1: Sync[F]) extends Database

Attributes

Companion
object
Source
Database.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Database
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def autoCommit[T](connectionKleisli: Kleisli[F, Connection[F], T]): F[T]

Functions to manage the processing of connections for writing.

Functions to manage the processing of connections for writing.

Type parameters

T

Type of data to be retrieved after database processing is executed.

Value parameters

connectionKleisli

A Kleisli function that receives a Connection.

Attributes

Source
Database.scala
def connection[T](connectionKleisli: (Connection[F]) => F[T]): F[T]

Functions to manage the processing of connections independently.

Functions to manage the processing of connections independently.

Type parameters

T

Type of data to be retrieved after database processing is executed.

Value parameters

connectionKleisli

A Kleisli function that receives a Connection.

Attributes

Source
Database.scala
def readOnly[T](connectionKleisli: Kleisli[F, Connection[F], T]): F[T]

Functions for managing the processing of connections in a read-only manner.

Functions for managing the processing of connections in a read-only manner.

Type parameters

T

Type of data to be retrieved after database processing is executed.

Value parameters

connectionKleisli

A Kleisli function that receives a Connection.

Attributes

Source
Database.scala
def rollback[T](connectionKleisli: Kleisli[F, Connection[F], T]): F[T]

Functions to manage the processing of connections, always rolling back.

Functions to manage the processing of connections, always rolling back.

Type parameters

T

Type of data to be retrieved after database processing is executed.

Value parameters

connectionKleisli

A Kleisli function that receives a Connection.

Attributes

Source
Database.scala
def setCharacter(character: Character): Database[F]

Attributes

Source
Database.scala
def setCollate(collate: Collate[String]): Database[F]

Attributes

Source
Database.scala
def setTables(tables: Set[Table[_]]): Database[F]

Attributes

Source
Database.scala
def transaction[T](connectionKleisli: Kleisli[F, Connection[F], T]): F[T]

Functions to manage the processing of connections in a transaction.

Functions to manage the processing of connections in a transaction.

Type parameters

T

Type of data to be retrieved after database processing is executed.

Value parameters

connectionKleisli

A Kleisli function that receives a Connection.

Attributes

Source
Database.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val catalog: Option[String]

Database Catalog

Database Catalog

Attributes

Source
Database.scala
override val schema: String

Database Schema

Database Schema

Attributes

Source
Database.scala
override val schemaMeta: Option[String]

Database Schema Meta Information

Database Schema Meta Information

Attributes

Source
Database.scala