Package

org.scanamo

semiauto

Permalink

package semiauto

Semi-automatic format derivation.

This object provides helpers for creating org.scanamo.DynamoFormat instances for case classes

Typical usage will look like the following:

import org.scanamo.semiauto._

case class Bear(name: String, favouriteFood: String)
object Bear {
  implicit val formatBear: DynamoFormat[Bear] = deriveDynamoFormat[Bear]
}
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. semiauto
  2. SemiAutoDerivation
  3. DerivedDynamoFormat
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait CoProductDynamoFormat[T] extends ConstructedDynamoFormat[T]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  2. trait ConstructedDynamoFormat[T] extends AnyRef

    Permalink
    Definition Classes
    DerivedDynamoFormat
  3. type FieldName = String

    Permalink
    Definition Classes
    DerivedDynamoFormat
  4. trait InvalidConstructedDynamoFormat[T] extends ConstructedDynamoFormat[T]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  5. trait ValidConstructedDynamoFormat[T] extends ConstructedDynamoFormat[T]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  6. type ValidatedPropertiesError[T] = Validated[NonEmptyList[(FieldName, DynamoReadError)], T]

    Permalink
    Definition Classes
    DerivedDynamoFormat

Value Members

  1. implicit val cnil: CoProductDynamoFormat[CNil]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  2. implicit def coproduct[K <: Symbol, V, T <: Coproduct](implicit headFormat0: Lazy[DynamoFormat[V]], tailFormat: CoProductDynamoFormat[T], fieldWitness: Aux[K]): CoProductDynamoFormat[:+:[FieldType[K, V], T]]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  3. final def deriveDynamoFormat[A](implicit exported: Exported[DynamoFormat[A]]): DynamoFormat[A]

    Permalink
    Definition Classes
    SemiAutoDerivation
  4. implicit def genericCoProduct[T, R](implicit gen: Aux[T, R], formatR: Lazy[CoProductDynamoFormat[R]]): Exported[DynamoFormat[T]]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  5. implicit def genericProduct[T, R](implicit gen: Aux[T, R], formatR: Lazy[ValidConstructedDynamoFormat[R]]): Exported[DynamoFormat[T]]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  6. implicit def hcons[K <: Symbol, V, T <: HList](implicit headFormat0: Lazy[DynamoFormat[V]], tailFormat: ConstructedDynamoFormat[T], fieldWitness: Aux[K]): ValidConstructedDynamoFormat[::[FieldType[K, V], T]]

    Permalink
    Definition Classes
    DerivedDynamoFormat
  7. implicit val hnil: InvalidConstructedDynamoFormat[HNil]

    Permalink
    Definition Classes
    DerivedDynamoFormat

Inherited from SemiAutoDerivation

Inherited from DerivedDynamoFormat

Inherited from AnyRef

Inherited from Any

Ungrouped