MigrationSelectorSyntax

zio.blocks.schema.migration.MigrationSelectorSyntax
See theMigrationSelectorSyntax companion object
transparent trait MigrationSelectorSyntax

Scala 3 extension methods for selector syntax in migrations. These are compile-time-only placeholders that get transformed by the macros.

Provides syntax sugar for selector expressions like:

  • _.field.each for collection traversal
  • _.variant.when[Type] for case selection
  • _.wrapper.wrapped[Inner] for wrapper unwrapping
  • _.seq.at(0) for index access
  • _.map.atKey(key) for map key access

Attributes

Companion
object
Source
MigrationSelectorSyntax.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Extensions

Extensions

extension [A](a: A)
inline def when[B <: A]: B

Attributes

Source
MigrationSelectorSyntax.scala
inline def wrapped[B]: B

Attributes

Source
MigrationSelectorSyntax.scala
extension [C[_], A](c: C[A])
inline def at(index: Int): A

Attributes

Source
MigrationSelectorSyntax.scala
inline def each: A

Attributes

Source
MigrationSelectorSyntax.scala
extension [M[_, _], K, V](m: M[K, V])
inline def atKey(key: K): V

Attributes

Source
MigrationSelectorSyntax.scala
inline def eachKey: K

Attributes

Source
MigrationSelectorSyntax.scala
inline def eachValue: V

Attributes

Source
MigrationSelectorSyntax.scala