ConnectionDb

dataprism.jdbc.sql.ConnectionDb
trait ConnectionDb[F[_]] extends Db[F, JdbcCodec]

Attributes

Source
ConnectionDb.scala
Graph
Supertypes
trait Db[F, JdbcCodec]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def getConnection(using ResourceManager): Connection

Attributes

Source
ConnectionDb.scala
protected def wrapTry[A](tryV: => Try[A]): F[A]

Attributes

Source
ConnectionDb.scala

Concrete methods

protected def makeAndUsePrepared[A : Monoid](sql: SqlStr[JdbcCodec], trueBatch: Boolean)(f: ResourceManager ?=> (PreparedStatement, Connection) => A): F[A]

Attributes

Source
ConnectionDb.scala
protected def makePrepared(sql: SqlStr[JdbcCodec], con: Connection)(using ResourceManager): PreparedStatement

Attributes

Source
ConnectionDb.scala
protected def makePreparedWithBatch[A : Monoid](sql: SqlStr[JdbcCodec], con: Connection, trueBatch: Boolean)(use: PreparedStatement => A)(implicit evidence$1: Monoid[A], ResourceManager): A

Attributes

Source
ConnectionDb.scala
override def run(sql: SqlStr[JdbcCodec]): F[Int]

Attributes

Definition Classes
Db
Source
ConnectionDb.scala
override def runBatch(sql: SqlStr[JdbcCodec]): F[Seq[Int]]

Attributes

Definition Classes
Db
Source
ConnectionDb.scala
override def runIntoRes[Res[_[_]]](sql: SqlStr[JdbcCodec], dbTypes: Res[JdbcCodec], minRows: Int, maxRows: Int)(using FT: TraverseKC[Res]): F[Seq[Res[Id]]]

Attributes

Definition Classes
Db
Source
ConnectionDb.scala
override def runIntoSimple[Res](sql: SqlStr[JdbcCodec], dbTypes: JdbcCodec[Res]): F[Seq[Res]]

Attributes

Definition Classes
Db
Source
ConnectionDb.scala
protected def setArgs(con: Connection, ps: PreparedStatement, args: Seq[SqlArg[JdbcCodec]], batch: Int)(using ResourceManager): Unit

Attributes

Source
ConnectionDb.scala

Inherited methods

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

Attributes

Inherited from:
Db
Source
Db.scala