Patch

zio.schema.Patch
See thePatch companion trait
object Patch

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Patch.type

Members list

Type members

Classlikes

final case class BigDecimal(distance: BigDecimal, precision: Int) extends Patch[BigDecimal]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[BigDecimal]
class Object
trait Matchable
class Any
Show all
final case class BigInt(distance: BigInteger) extends Patch[BigInteger]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[BigInteger]
class Object
trait Matchable
class Any
Show all
final case class Bool(xor: Boolean) extends Patch[Boolean]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[Boolean]
class Object
trait Matchable
class Any
Show all
final case class EitherDiff[A, B](diff: Either[Patch[A], Patch[B]]) extends Patch[Either[A, B]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[Either[A, B]]
class Object
trait Matchable
class Any
Show all
final case class Fallback[A, B](diff: Fallback[Patch[A], Patch[B]]) extends Patch[Fallback[A, B]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[Fallback[A, B]]
class Object
trait Matchable
class Any
Show all
final case class Identical[A]() extends Patch[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[A]
class Object
trait Matchable
class Any
Show all
final case class LCS[A](edits: Chunk[Edit[A]]) extends Patch[Chunk[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[Chunk[A]]
class Object
trait Matchable
class Any
Show all
final case class NotComparable[A]() extends Patch[A]

Represents diff between incomparable values. For instance Left(1) and Right("a")

Represents diff between incomparable values. For instance Left(1) and Right("a")

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[A]
class Object
trait Matchable
class Any
Show all
final case class Number[A](distance: A)(implicit ev: Numeric[A]) extends Patch[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[A]
class Object
trait Matchable
class Any
Show all
final case class Record[R](differences: ListMap[String, Patch[_]], schema: Record[R]) extends Patch[R]

Map of field-level diffs between two records. The map of differences is keyed to the records field names.

Map of field-level diffs between two records. The map of differences is keyed to the records field names.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[R]
class Object
trait Matchable
class Any
Show all
Self type
Record[R]
final case class SchemaMigration(migrations: Chunk[Migration]) extends Patch[Schema[_]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[Schema[_]]
class Object
trait Matchable
class Any
Show all
Self type
final case class Temporal[A](distances: List[Long], tpe: StandardType[A]) extends Patch[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[A]
class Object
trait Matchable
class Any
Show all
Self type
final case class Total[A](value: A) extends Patch[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[A]
class Object
trait Matchable
class Any
Show all
final case class Transform[A, B](patch: Patch[A], f: A => Either[String, B], g: B => Either[String, A]) extends Patch[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[B]
class Object
trait Matchable
class Any
Show all
final case class Tuple[A, B](leftDifference: Patch[A], rightDifference: Patch[B]) extends Patch[(A, B)]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Patch[(A, B)]
class Object
trait Matchable
class Any
Show all
final case class ZonedDateTime(localDateTimeDiff: Patch[LocalDateTime], zoneIdDiff: Patch[String]) extends Patch[ZonedDateTime]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def identical[A]: Identical[A]
def invert[A](patch: Patch[A]): Patch[A]