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
- Grouped
- Alphabetic
- By Inheritance
- Update
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
val
logHandler: doobie.LogHandler
- Attributes
- protected
-
abstract
val
pos: Option[Pos]
An optional
Pos
indicating the source location where thisUpdate
was constructed.An optional
Pos
indicating the source location where thisUpdate
was constructed. This is used only for diagnostic purposes. -
abstract
val
sql: String
The SQL string.
-
implicit abstract
val
write: Write[A]
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
analysis: doobie.ConnectionIO[Analysis]
Program to construct an analysis of this query's SQL statement and asserted parameter types.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
contramap[C](f: (C) ⇒ A): Update[C]
Update is a contravariant functor.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
, callsf
with the SQL representation of the query and a statement with all arguments set. Returns the result of theConnectionIO
program constructed. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFragment(a: A): doobie.Fragment
Convert this Update to a
Fragment
. -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toUpdate0(a: A): Update0
Apply an argument, yielding a residual
Update0
. -
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.
-
def
updateManyWithGeneratedKeys[K](columns: String*): UpdateManyWithGeneratedKeysPartiallyApplied[A, K]
Construct a stream that performs a batch update as with
updateMany
, yielding generated keys of readable typeK
, identified by the specified columns.Construct a stream that performs a batch update as with
updateMany
, yielding generated keys of readable typeK
, identified by the specified columns. Note that not all drivers support generated keys, and some support only a single key column. -
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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 argumenta
.Construct a stream that performs the update, yielding generated keys of readable type
K
, identified by the specified columns, given a writable argumenta
. Note that not all drivers support generated keys, and some support only a single key column. -
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 argumenta
andchunkSize
.Construct a stream that performs the update, yielding generated keys of readable type
K
, identified by the specified columns, given a writable argumenta
andchunkSize
. Note that not all drivers support generated keys, and some support only a single key column. -
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 argumenta
.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 argumenta
. Note that not all drivers support generated keys, and some support only a single key column.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated