SchemaMapper

org.sigilaris.core.application.module.blueprint.SchemaMapper
See theSchemaMapper companion object
trait SchemaMapper[F[_], Path <: Tuple, Schema <: Tuple]

Typeclass for instantiating tables from Entry instances.

This uses the typeclass derivation pattern to avoid inline match issues with abstract type parameters. Given instances are automatically derived for EmptyTuple and cons cases at compile time.

Type parameters

F

the effect type

Path

the mount path tuple

Schema

the schema tuple type

Attributes

Companion
object
Source
SchemaInstantiation.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def instantiate(schema: Schema): Tables[F, Schema]

Instantiate tables from a schema tuple of Entry instances.

Instantiate tables from a schema tuple of Entry instances.

Value parameters

schema

the runtime tuple of Entry instances

Attributes

Returns

a tuple of StateTable instances

Source
SchemaInstantiation.scala