Packages

  • package root
    Definition Classes
    root
  • package doobie

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core.

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core. A typical starting set of imports would be something like this.

    import cats.implicits._
    import doobie._, doobie.implicits._
    Definition Classes
    root
    See also

    The doobie microsite for much more information.

  • package util

    Collection of modules for typeclasses and other helpful bits.

    Collection of modules for typeclasses and other helpful bits.

    Definition Classes
    doobie
  • object update

    Module defining updates parameterized by input type.

    Module defining updates parameterized by input type.

    Definition Classes
    util
  • Update
  • Update0
  • UpdateManyWithGeneratedKeysPartiallyApplied

trait Update[A] extends AnyRef

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

Self Type
Update[A]
Source
update.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Update
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val logHandler: doobie.LogHandler
    Attributes
    protected
  2. abstract val pos: Option[Pos]

    An optional Pos indicating the source location where this Update was constructed.

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

  3. abstract val sql: String

    The SQL string.

  4. implicit abstract val write: Write[A]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def analysis: doobie.ConnectionIO[Analysis]

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

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. def contramap[C](f: (C) ⇒ A): Update[C]

    Update is a contravariant functor.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def inspect[R](a: A)(f: (String, doobie.PreparedStatementIO[Unit]) ⇒ doobie.ConnectionIO[R]): doobie.ConnectionIO[R]

    Program to construct an inspection of the query.

    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.

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def run(a: A): doobie.ConnectionIO[Int]

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

  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toFragment(a: A): doobie.Fragment

    Convert this Update to a Fragment.

  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def toUpdate0(a: A): Update0

    Apply an argument, yielding a residual Update0.

  22. def updateMany[F[_]](fa: F[A])(implicit arg0: Foldable[F]): doobie.ConnectionIO[Int]

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

    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.

  23. def updateManyWithGeneratedKeys[K](columns: String*): UpdateManyWithGeneratedKeysPartiallyApplied[A, K]

    Construct a stream that performs a batch update as with updateMany, yielding generated keys of readable type K, identified by the specified columns.

    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.

  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withGeneratedKeys[K](columns: String*)(a: A)(implicit arg0: Read[K]): Stream[doobie.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.

    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.

  28. def withGeneratedKeysWithChunkSize[K](columns: String*)(a: A, chunkSize: Int)(implicit arg0: Read[K]): Stream[doobie.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.

    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.

  29. def withUniqueGeneratedKeys[K](columns: String*)(a: A)(implicit arg0: Read[K]): doobie.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.

    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.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Diagnostics

Execution

Transformations

Ungrouped