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
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

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

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

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

def setCharacter(character: Character): Database[F]
def setCollate(collate: Collate[String]): Database[F]
def setTables(tables: Set[Table[_]]): Database[F]
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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val catalog: Option[String]

Database Catalog

Database Catalog

Attributes

override val schema: String

Database Schema

Database Schema

Attributes

override val schemaMeta: Option[String]

Database Schema Meta Information

Database Schema Meta Information

Attributes