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

Concise view

Type members

Classlikes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Patch[Either[A, B]]
class Object
trait Matchable
class Any
final case class Identical[A]() extends Patch[A]

Attributes

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

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Patch[Chunk[A]]
class Object
trait Matchable
class Any
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

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

Attributes

Graph
Supertypes
trait Product
trait Equals
trait Patch[A]
class Object
trait Matchable
class Any
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

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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