connection

doobie.hi.connection
object connection

Module of high-level constructors for ConnectionIO actions.

Attributes

Source
connection.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
connection.type

Members list

Grouped members

Statements

def createStatement[A](k: StatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def createStatement[A](rst: ResultSetType, rsc: ResultSetConcurrency)(k: StatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def createStatement[A](rst: ResultSetType, rsc: ResultSetConcurrency, rsh: Holdability)(k: StatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala

Prepared Statements

def prepareStatement[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency)(k: PreparedStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareStatement[A](sql: String)(k: PreparedStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareStatement[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency, rsh: Holdability)(k: PreparedStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareStatement[A](sql: String, agk: AutoGeneratedKeys)(k: PreparedStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareStatementI[A](sql: String, columnIndexes: List[Int])(k: PreparedStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareStatementS[A](sql: String, columnNames: List[String])(k: PreparedStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def stream[A](sql: String, prep: PreparedStatementIO[Unit], chunkSize: Int)(using evidence$2: Read[A]): Stream[ConnectionIO, A]

Construct a prepared statement from the given sql, configure it with the given PreparedStatementIO action, and return results via a Stream.

Construct a prepared statement from the given sql, configure it with the given PreparedStatementIO action, and return results via a Stream.

Attributes

Source
connection.scala
def updateManyWithGeneratedKeys[F[_], A, B](cols: List[String])(sql: String, prep: PreparedStatementIO[Unit], fa: F[A], chunkSize: Int)(using evidence$4: Foldable[F], evidence$5: Write[A], evidence$6: Read[B]): Stream[ConnectionIO, B]

Attributes

Source
connection.scala
def updateWithGeneratedKeys[A](cols: List[String])(sql: String, prep: PreparedStatementIO[Unit], chunkSize: Int)(using evidence$3: Read[A]): Stream[ConnectionIO, A]

Construct a prepared update statement with the given return columns (and readable destination type A) and sql source, configure it with the given PreparedStatementIO action, and return the generated key results via a Stream.

Construct a prepared update statement with the given return columns (and readable destination type A) and sql source, configure it with the given PreparedStatementIO action, and return the generated key results via a Stream.

Attributes

Source
connection.scala

Connection Properties

val getCatalog: ConnectionIO[String]

Attributes

Source
connection.scala
def getClientInfo(key: String): ConnectionIO[Option[String]]

Attributes

Source
connection.scala
val getClientInfo: ConnectionIO[Map[String, String]]

Attributes

Source
connection.scala
val getHoldability: ConnectionIO[Holdability]

Attributes

Source
connection.scala
def getMetaData[A](k: DatabaseMetaDataIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
val isReadOnly: ConnectionIO[Boolean]

Attributes

Source
connection.scala
def setCatalog(catalog: String): ConnectionIO[Unit]

Attributes

Source
connection.scala
def setClientInfo(key: String, value: String): ConnectionIO[Unit]

Attributes

Source
connection.scala
def setClientInfo(info: Map[String, String]): ConnectionIO[Unit]

Attributes

Source
connection.scala
def setHoldability(h: Holdability): ConnectionIO[Unit]

Attributes

Source
connection.scala
def setReadOnly(readOnly: Boolean): ConnectionIO[Unit]

Attributes

Source
connection.scala

Callable Statements

def prepareCall[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency)(k: CallableStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareCall[A](sql: String)(k: CallableStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala
def prepareCall[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency, rsh: Holdability)(k: CallableStatementIO[A]): ConnectionIO[A]

Attributes

Source
connection.scala

Transaction Control

val commit: ConnectionIO[Unit]

Attributes

Source
connection.scala

Attributes

Source
connection.scala
def releaseSavepoint(sp: Savepoint): ConnectionIO[Unit]

Attributes

Source
connection.scala
def rollback(sp: Savepoint): ConnectionIO[Unit]

Attributes

Source
connection.scala
val rollback: ConnectionIO[Unit]

Attributes

Source
connection.scala
def setSavepoint(name: String): ConnectionIO[Savepoint]

Attributes

Source
connection.scala
val setSavepoint: ConnectionIO[Savepoint]

Attributes

Source
connection.scala
def setTransactionIsolation(ti: TransactionIsolation): ConnectionIO[Unit]

Attributes

Source
connection.scala

Lifting

def delay[A](a: => A): ConnectionIO[A]

Attributes

Source
connection.scala

Value members

Concrete methods

def prepareQueryAnalysis[A, B](sql: String)(using evidence$10: Write[A], evidence$11: Read[B]): ConnectionIO[Analysis]

Construct an analysis for the provided sql query, given writable parameter type A and readable resultset row type B.

Construct an analysis for the provided sql query, given writable parameter type A and readable resultset row type B.

Attributes

Source
connection.scala
def prepareQueryAnalysis0[B](sql: String)(using evidence$12: Read[B]): ConnectionIO[Analysis]

Attributes

Source
connection.scala
def prepareUpdateAnalysis[A](sql: String)(using evidence$13: Write[A]): ConnectionIO[Analysis]

Attributes

Source
connection.scala
def prepareUpdateAnalysis0(sql: String): ConnectionIO[Analysis]

Attributes

Source
connection.scala
def updateManyReturningGeneratedKeys[F[_], A, K](cols: List[String])(sql: String, fa: F[A])(using evidence$7: Foldable[F], evidence$8: Write[A], evidence$9: Read[K], B: Factory[K, F[K]]): ConnectionIO[F[K]]

Attributes

Source
connection.scala