Attributes
- Companion
- object
- Source
- DbCodecDeriver.scala
- Graph
-
- Supertypes
- Known subtypes
-
object DbCodecDeriver
Members list
Type members
Inherited types
Attributes
- Inherited from:
- Deriver
- Source
- Deriver.scala
Value members
Concrete methods
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Attributes
- Definition Classes
- Source
- DbCodecDeriver.scala
Inherited methods
Attributes
- Inherited from:
- Deriver
- Source
- Deriver.scala
Attributes
- Inherited from:
- Deriver
- Source
- Deriver.scala
Attributes
- Inherited from:
- Deriver
- Source
- Deriver.scala
Attributes
- Inherited from:
- Deriver
- Source
- Deriver.scala
Returns a new deriver that pre-registers a field-level instance override. During derivation, the field named termName inside the parent record/variant identified by typeId will use the supplied instance instead of deriving one.
Returns a new deriver that pre-registers a field-level instance override. During derivation, the field named termName inside the parent record/variant identified by typeId will use the supplied instance instead of deriving one.
This is a medium-precision override between optic-based (exact path) and type-based (all occurrences).
Type parameters
- A
-
the parent record or variant type that owns the field
- B
-
the type of the field being overridden. Note that
Bis not statically checked against the actual field type; a mismatch will surface as a runtime error during codec use, not at derivation time.
Value parameters
- instance
-
the custom type-class instance for the field (evaluated lazily)
- termName
-
the name of the field (or variant case) to override. If no field with this name exists in the target type, the override is silently ignored during derivation (matching
DerivationBuilder.instancebehaviour). - typeId
-
identifier for the parent type
A
Attributes
- Returns
-
a new
Deriverthat wraps this deriver with the additional override - Inherited from:
- Deriver
- Source
- Deriver.scala
Returns a new deriver that pre-registers a type-level instance override. During derivation, every occurrence of type A will use the supplied instance instead of deriving one.
Returns a new deriver that pre-registers a type-level instance override. During derivation, every occurrence of type A will use the supplied instance instead of deriving one.
When the returned deriver is passed to DerivationBuilder, deriver-level instance overrides take precedence over builder-level instance overrides for the same target because DerivationBuilder.derive merges them as builderOverrides ++ deriver.instanceOverrides and later entries win in the resulting .toMap.
Type parameters
- A
-
the type whose derived instance should be replaced
Value parameters
- instance
-
the custom type-class instance (evaluated lazily)
- typeId
-
implicit identifier for
A, used to match occurrences during derivation
Attributes
- Returns
-
a new
Deriverthat wraps this deriver with the additional override - Inherited from:
- Deriver
- Source
- Deriver.scala
Returns a new deriver that pre-registers a term-level modifier override. During derivation, the field named termName inside the parent type identified by typeId will have the modifier applied.
Returns a new deriver that pre-registers a term-level modifier override. During derivation, the field named termName inside the parent type identified by typeId will have the modifier applied.
Type parameters
- A
-
the parent record or variant type that owns the field
Value parameters
- modifier
-
the term-level modifier to apply
- termName
-
the name of the field (or variant case) to modify. If no field with this name exists in the target type, the override is silently ignored.
- typeId
-
identifier for
A
Attributes
- Returns
-
a new
Deriverthat wraps this deriver with the additional override - Inherited from:
- Deriver
- Source
- Deriver.scala
Returns a new deriver that pre-registers a reflect-level modifier override. During derivation, every occurrence of the type identified by typeId will have the modifier prepended to its modifiers.
Returns a new deriver that pre-registers a reflect-level modifier override. During derivation, every occurrence of the type identified by typeId will have the modifier prepended to its modifiers.
Type parameters
- A
-
the type to attach the modifier to
Value parameters
- modifier
-
the reflect-level modifier to prepend
- typeId
-
identifier for
A
Attributes
- Returns
-
a new
Deriverthat wraps this deriver with the additional override - Inherited from:
- Deriver
- Source
- Deriver.scala