TablesProjection

org.sigilaris.core.application.module.provider.TablesProjection
See theTablesProjection companion object
trait TablesProjection[F[_], Subset <: Tuple, Source <: Tuple]

Typeclass proving that Subset can be extracted from Source schema.

TablesProjection[F, Subset, Source] proves that every entry in Subset exists in Source with matching name, key, and value types. It provides a project method that extracts the subset tables from a full tables tuple.

This is the key abstraction for provider narrowing in Phase 5.6.

Type parameters

F

the effect type

Source

the source schema to extract from

Subset

the subset schema to extract

Attributes

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

Members list

Value members

Abstract methods

def project(sourceTables: Tables[F, Source]): Tables[F, Subset]

Project the source tables to the subset.

Project the source tables to the subset.

Value parameters

sourceTables

the full tables tuple

Attributes

Returns

the projected subset tables

Source
TablesProvider.scala