Irreversible

zio.blocks.schema.migration.MigrationAction.Irreversible
final case class Irreversible(at: DynamicOptic, originalAction: String) extends MigrationAction

Sentinel action representing a non-invertible operation. Executing this action always fails with a descriptive error. This is returned by .reverse on actions that cannot be structurally reversed (e.g., TransformField, ChangeFieldType, OptionalizeField).

Value parameters

at

The path where the original action operated

originalAction

The name of the original non-invertible action

Attributes

Source
MigrationAction.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def reverse: MigrationAction

Reversing an irreversible action returns itself — it always fails at runtime.

Reversing an irreversible action returns itself — it always fails at runtime.

Attributes

Definition Classes
Source
MigrationAction.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala