io.github.vigoo.desert.Evolution
See theEvolution companion trait
object Evolution
Attributes
Members list
Type members
Classlikes
final case class FieldAdded[F](name: String, default: F) extends Evolution
Add a new field to a case class
Add a new field to a case class
New version can still read old with the use of default. Old version can only read if F is Option[T] and the value is None.
Attributes
- Supertypes
-
trait Producttrait Equalstrait Evolutiontrait Serializableclass Objecttrait Matchableclass AnyShow all
final case class FieldMadeOptional(name: String) extends Evolution
Existing non-option field made optional
Existing non-option field made optional
New version can read old data by wrapping with Some Old version can read new data if it is not None
Attributes
- Supertypes
-
trait Producttrait Equalstrait Evolutiontrait Serializableclass Objecttrait Matchableclass AnyShow all
object FieldMadeTransient
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FieldMadeTransient.type
final case class FieldRemoved(name: String) extends Evolution
Field removed from product
Field removed from product
New version can read old data by skipping the field Old version can read new data only if it was Option[T]
Attributes
- Supertypes
-
trait Producttrait Equalstrait Evolutiontrait Serializableclass Objecttrait Matchableclass AnyShow all
case object InitialVersion extends Evolution
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Producttrait Equalstrait Evolutiontrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
InitialVersion.type
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
In this article