SchemaMapper

org.sigilaris.core.application.module.blueprint.SchemaMapper
See theSchemaMapper companion trait
object SchemaMapper

Companion for SchemaMapper, providing derivation instances for empty and cons schemas.

Attributes

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

Members list

Givens

Givens

given cons[F[_], Path <: Tuple, N <: String, K, V, Tail <: Tuple](using evidence$1: Monad[F], tailMapper: SchemaMapper[F, Path, Tail], nodeStore: NodeStore[F], pathEncoder: PathEncoder[Path]): cons[F, Path, N, K, V, Tail]

Inductive case: process head Entry and recurse on tail.

Inductive case: process head Entry and recurse on tail.

For each Entry[N, K, V] in the schema:

  1. Compute the table prefix from Path and table name N 2. Create a StateTable using Entry.createTable 3. Recursively process the tail 4. Cons the results together

Attributes

Source
SchemaInstantiation.scala
given empty[F[_], Path <: Tuple]: empty[F, Path]

Base case: empty schema produces no tables.

Base case: empty schema produces no tables.

Attributes

Source
SchemaInstantiation.scala