DiffAction

intervalidus.DiffAction
See theDiffAction companion object
enum DiffAction[+V, +D <: NonEmptyTuple](using x$1: DomainLike[D])

Create/update/delete actions (like CQRS mutation commands). Used when extrapolating or applying event source-style information on dimensional data.

Type parameters

D

for Create and Update, the type of domain used in the interval assigned to the valid value, and for Delete, the type of domain used as the key.

V

the type of the value managed as data (not used in Delete).

Attributes

Note

intervalidus does not have event-sourced data structures, and the history of mutations is not maintained.

Companion
object
Source
DiffAction.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Create[VV, DD]
class Update[VV, DD]
class Delete[DD]

Members list

Type members

Enum entries

final case class Create[VV, DD <: NonEmptyTuple](validData: ValidData[VV, DD])(implicit evidence$1: DomainLike[DD]) extends DiffAction[VV, DD]

Attributes

Source
DiffAction.scala
final case class Delete[DD <: NonEmptyTuple](key: DD)(implicit evidence$1: DomainLike[DD]) extends DiffAction[Nothing, DD]

Attributes

Source
DiffAction.scala
final case class Update[VV, DD <: NonEmptyTuple](validData: ValidData[VV, DD])(implicit evidence$1: DomainLike[DD]) extends DiffAction[VV, DD]

Attributes

Source
DiffAction.scala