Update

doobie.util.update$.Update
See theUpdate companion object
trait Update[A]

An update parameterized by some input type A. This is the type constructed by the sql interpolator.

Attributes

Companion
object
Source
update.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Update[A]

Members list

Grouped members

Diagnostics

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](a: A)(f: (String, PreparedStatementIO[Unit]) => ConnectionIO[R]): ConnectionIO[R]

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

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

Attributes

Source
update.scala

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 [[Update]] was constructed. This is used only for diagnostic purposes.

An optional [[Pos]] indicating the source location where this [[Update]] 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(a: A): ConnectionIO[Int]

Construct a program to execute the update and yield a count of affected rows, given the writable argument a.

Construct a program to execute the update and yield a count of affected rows, given the writable argument a.

Attributes

Source
update.scala
def updateMany[F[_] : Foldable](fa: F[A]): ConnectionIO[Int]

Program to execute a batch update and yield a count of affected rows. Note that failed updates are not reported (see https://github.com/tpolecat/doobie/issues/706). This API is likely to change.

Program to execute a batch update and yield a count of affected rows. Note that failed updates are not reported (see https://github.com/tpolecat/doobie/issues/706). This API is likely to change.

Attributes

Source
update.scala

Construct a stream that performs a batch update as with updateMany, 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 a batch update as with updateMany, 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 withGeneratedKeys[K : Read](columns: String*)(a: A): Stream[ConnectionIO, K]

Construct a stream that performs the update, yielding generated keys of readable type K, identified by the specified columns, given a writable argument a. 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 writable argument a. Note that not all drivers support generated keys, and some support only a single key column.

Attributes

Source
update.scala
def withGeneratedKeysWithChunkSize[K : Read](columns: String*)(a: A, chunkSize: Int): Stream[ConnectionIO, K]

Construct a stream that performs the update, yielding generated keys of readable type K, identified by the specified columns, given a writable argument a and 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 writable argument a and chunkSize. Note that not all drivers support generated keys, and some support only a single key column.

Attributes

Source
update.scala
def withUniqueGeneratedKeys[K : Read](columns: String*)(a: A): 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, given a writable argument a. 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, given a writable argument a. Note that not all drivers support generated keys, and some support only a single key column.

Attributes

Source
update.scala

Transformations

def contramap[C](f: C => A): Update[C]

Update is a contravariant functor.

Update is a contravariant functor.

Attributes

Source
update.scala
def toUpdate0(a: A): Update0

Apply an argument, yielding a residual [[Update0]].

Apply an argument, yielding a residual [[Update0]].

Attributes

Source
update.scala

Value members

Concrete methods

def toFragment(a: A): Fragment

Convert this Update to a Fragment.

Convert this Update to a Fragment.

Attributes

Source
update.scala

Abstract fields

val label: String

Label to be used during logging

Label to be used during logging

Attributes

Source
update.scala