Update0

doobie.util.update.Update0
See theUpdate0 companion object
trait Update0

Attributes

Companion
object
Source
update.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Grouped members

Diagnostics

def analysis: ConnectionIO[Analysis]

Program to construct an analysis of this query's SQL statement and asserted parameter types.

Program to construct an analysis of this query's SQL statement and asserted parameter types.

Attributes

Source
update.scala
def inspect[R](f: (String, PreparedStatementIO[Unit]) => ConnectionIO[R]): ConnectionIO[R]

Program to construct an inspection of the query. Calls f with the SQL representation of the query and a statement with all statement arguments set. Returns the result of the ConnectionIO program constructed.

Program to construct an inspection of the query. Calls f with the SQL representation of the query and a statement with all statement arguments set. Returns the result of the ConnectionIO program constructed.

Attributes

Source
update.scala
def outputAnalysis: ConnectionIO[Analysis]

Program to construct an analysis of this query's SQL statement and result set column types.

Program to construct an analysis of this query's SQL statement and result set column types.

Attributes

Source
update.scala
val pos: Option[Pos]

An optional Pos indicating the source location where this Query was constructed. This is used only for diagnostic purposes.

An optional Pos indicating the source location where this Query was constructed. This is used only for diagnostic purposes.

Attributes

Source
update.scala
val sql: String

The SQL string.

The SQL string.

Attributes

Source
update.scala

Execution

def run: ConnectionIO[Int]

Program to execute the update and yield a count of affected rows.

Program to execute the update and yield a count of affected rows.

Attributes

Source
update.scala
def withGeneratedKeys[K](columns: String*)(using evidence$5: Read[K]): Stream[ConnectionIO, K]

Construct a stream that performs the update, yielding generated keys of readable type K, identified by the specified columns. Note that not all drivers support generated keys, and some support only a single key column.

Construct a stream that performs the update, yielding generated keys of readable type K, identified by the specified columns. Note that not all drivers support generated keys, and some support only a single key column.

Attributes

Source
update.scala
def withGeneratedKeysWithChunkSize[K](columns: String*)(chunkSize: Int)(using evidence$6: Read[K]): Stream[ConnectionIO, K]

Construct a stream that performs the update, yielding generated keys of readable type K, identified by the specified columns, given a chunkSize. Note that not all drivers support generated keys, and some support only a single key column.

Construct a stream that performs the update, yielding generated keys of readable type K, identified by the specified columns, given a chunkSize. Note that not all drivers support generated keys, and some support only a single key column.

Attributes

Source
update.scala
def withUniqueGeneratedKeys[K](columns: String*)(using evidence$7: Read[K]): ConnectionIO[K]

Construct a program that performs the update, yielding a single set of generated keys of readable type K, identified by the specified columns. Note that not all drivers support generated keys, and some support only a single key column.

Construct a program that performs the update, yielding a single set of generated keys of readable type K, identified by the specified columns. Note that not all drivers support generated keys, and some support only a single key column.

Attributes

Source
update.scala

Value members

Abstract methods

Convert this Update0 to a Fragment.

Convert this Update0 to a Fragment.

Attributes

Source
update.scala