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
Type Members
-
abstract
type
I
- Attributes
- protected
Abstract Value Members
-
abstract
val
ai: (A) ⇒ I
- Attributes
- protected
-
implicit abstract
val
ic: Composite[I]
- Attributes
- protected
-
abstract
val
logHandler: 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.
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: 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
run(a: A): ConnectionIO[Int]
Construct a program to execute the update and yield a count of affected rows, given the composite argument
a
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFragment(a: A): Fragment
Turn this
Update
into aFragment
, given an argument. -
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]): ConnectionIO[Int]
Program to execute a batch update and yield a count of affected rows.
-
def
updateManyWithGeneratedKeys[K](columns: String*): UpdateManyWithGeneratedKeysPartiallyApplied[A, K]
Construct a stream that performs a batch update as with
updateMany
, yielding generated keys of composite typeK
, identified by the specified columns.Construct a stream that performs a batch update as with
updateMany
, yielding generated keys of composite 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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withGeneratedKeys[K](columns: String*)(a: A)(implicit arg0: Composite[K]): Stream[ConnectionIO, K]
Construct a stream that performs the update, yielding generated keys of composite type
K
, identified by the specified columns, given a composite argumenta
.Construct a stream that performs the update, yielding generated keys of composite type
K
, identified by the specified columns, given a composite 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: Composite[K]): Stream[ConnectionIO, K]
Construct a stream that performs the update, yielding generated keys of composite type
K
, identified by the specified columns, given a composite argumenta
andchunkSize
.Construct a stream that performs the update, yielding generated keys of composite type
K
, identified by the specified columns, given a composite 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: Composite[K]): ConnectionIO[K]
Construct a program that performs the update, yielding a single set of generated keys of composite type
K
, identified by the specified columns, given a composite argumenta
.Construct a program that performs the update, yielding a single set of generated keys of composite type
K
, identified by the specified columns, given a composite argumenta
. Note that not all drivers support generated keys, and some support only a single key column.