DropField

zio.blocks.schema.migration.MigrationAction.DropField
final case class DropField(at: DynamicOptic, defaultForReverse: DynamicSchemaExpr) extends MigrationAction

Drop a field from a record. The field name is the last component of the at path.

Value parameters

at

The path to the field to drop (must end with a Field node)

defaultForReverse

Default value expression to use when reversing (adding the field back)

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

def fieldName: Option[String]

The field name, extracted from the path

The field name, extracted from the path

Attributes

Source
MigrationAction.scala
override def reverse: MigrationAction

Returns the structural inverse of this action. Note: Runtime reversal is best-effort and may fail if information was lost during the forward migration.

Returns the structural inverse of this action. Note: Runtime reversal is best-effort and may fail if information was lost during the forward migration.

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