DataSourceDb

dataprism.jdbc.sql.DataSourceDb
See theDataSourceDb companion object
trait DataSourceDb[F[_]](ds: DataSource) extends ConnectionDb[F], TransactionalDb[F, JdbcCodec]

Attributes

Companion
object
Source
DataSourceDb.scala
Graph
Supertypes
trait ConnectionDb[F]
trait Db[F, JdbcCodec]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

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

Attributes

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

Attributes

Inherited from:
ConnectionDb
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

Inherited from:
ConnectionDb
Source
ConnectionDb.scala
def mapK[G[_]](f: FunctionK[F, G]): Db[G, JdbcCodec]

Attributes

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

Attributes

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

Attributes

Definition Classes
Inherited from:
ConnectionDb
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
Inherited from:
ConnectionDb
Source
ConnectionDb.scala
override def runIntoSimple[Res](sql: SqlStr[JdbcCodec], dbTypes: JdbcCodec[Res]): F[Seq[Res]]

Attributes

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

Attributes

Inherited from:
ConnectionDb
Source
ConnectionDb.scala
def transaction[A](f: (TransactionDb[F, JdbcCodec]) ?=> F[A])(using NotGiven[TransactionDb[F, JdbcCodec]]): F[A]

Attributes

Inherited from:
TransactionalDb
Source
TransactionalDb.scala