ProjectionAction

zio.blocks.projection.ProjectionAction
See theProjectionAction companion object
enum ProjectionAction[+A]

A sealed enumeration of actions that can be applied to a projection.

ProjectionAction[+A] is covariant in A, allowing actions on subtypes to be used where supertype actions are expected.

Each variant represents a distinct operation on projected data:

  • Insert: Add a new entity
  • Upsert: Add or update an entity
  • Update: Modify specific fields of an existing entity
  • Delete: Remove an entity (sentinel — no payload)
  • Truncate: Remove all entities (sentinel — no payload)
  • Noop: No operation (sentinel — no payload)

Type parameters

A

The entity type this action operates on

Attributes

Companion
object
Source
ProjectionAction.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Insert[A]
class Upsert[A]
class Update[A]

Members list

Type members

Enum entries

case Delete extends ProjectionAction[Nothing]

Attributes

Source
ProjectionAction.scala
final case class Insert[A](value: A) extends ProjectionAction[A]

Attributes

Source
ProjectionAction.scala
case Noop extends ProjectionAction[Nothing]

Attributes

Source
ProjectionAction.scala
case Truncate extends ProjectionAction[Nothing]

Attributes

Source
ProjectionAction.scala
final case class Update[A](modifications: Chunk[FieldUpdate]) extends ProjectionAction[A]

Attributes

Source
ProjectionAction.scala
final case class Upsert[A](value: A) extends ProjectionAction[A]

Attributes

Source
ProjectionAction.scala