TransactionalDb

dataprism.sql.TransactionalDb
trait TransactionalDb[F[_], Codec[_]] extends Db[F, Codec]

Attributes

Source
TransactionalDb.scala
Graph
Supertypes
trait Db[F, Codec]
class Object
trait Matchable
class Any
Known subtypes
trait DataSourceDb[F]
trait CatsTransactionalDb[F, Codec]
class CatsDataSourceDb[F]
class Fs2DataSourceDb[F]

Members list

Value members

Abstract methods

def transaction[A](f: (TransactionDb[F, Codec]) ?=> F[A])(using NotGiven[TransactionDb[F, Codec]]): F[A]

Attributes

Source
TransactionalDb.scala

Inherited methods

def mapK[G[_]](f: FunctionK[F, G]): Db[G, Codec]

Attributes

Inherited from:
Db
Source
Db.scala
def run(sql: SqlStr[Codec]): F[Int]

Attributes

Inherited from:
Db
Source
Db.scala
def runBatch(sql: SqlStr[Codec]): F[Seq[Int]]

Attributes

Inherited from:
Db
Source
Db.scala
def runIntoRes[Res[_[_]]](sql: SqlStr[Codec], dbTypes: Res[Codec], minRows: Int, maxRows: Int)(using FT: TraverseKC[Res]): F[Seq[Res[Id]]]

Attributes

Inherited from:
Db
Source
Db.scala
def runIntoSimple[Res](sql: SqlStr[Codec], dbTypes: Codec[Res]): F[Seq[Res]]

Attributes

Inherited from:
Db
Source
Db.scala