FieldUpdate

zio.blocks.projection.FieldUpdate
See theFieldUpdate companion object

A sealed enumeration of field-level update operations.

Each variant describes how a single field should be modified during an Update action on a ProjectionAction.

Provides two APIs:

  • '''String-based''' (direct): FieldUpdate.Increment("user_count", 1L)
  • '''Selector-based''' (macro): FieldUpdate.increment[User](_.userCount) which maps userCount → user_count via SqlNameMapper.SnakeCase

Attributes

Companion
object
Source
FieldUpdate.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Set
class Increment
class Decrement
class Max
class Min

Members list

Type members

Enum entries

final case class Decrement(field: String, by: Long) extends FieldUpdate

Attributes

Source
FieldUpdate.scala
final case class Increment(field: String, by: Long) extends FieldUpdate

Attributes

Source
FieldUpdate.scala
final case class Max(field: String, value: Long) extends FieldUpdate

Attributes

Source
FieldUpdate.scala
final case class Min(field: String, value: Long) extends FieldUpdate

Attributes

Source
FieldUpdate.scala
final case class Set(field: String, value: Any) extends FieldUpdate

Attributes

Source
FieldUpdate.scala