TablesProviderOps

org.sigilaris.core.assembly.TablesProviderOps

Convenience extensions for deriving table providers from mounted modules.

These helpers bridge the gap between module mounting (which yields a org.sigilaris.core.application.module.runtime.StateModule exposing its owned tables) and downstream modules that depend on those tables via org.sigilaris.core.application.module.provider.TablesProvider.

They simply forward to TablesProvider.fromModule, but live in the assembly package so that higher level assembly DSLs can import a single package and gain access to the standard helpers.

Attributes

See also
Source
TablesProviderOps.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension [F[_], Path <: Tuple, Owns <: Tuple, Needs <: Tuple, Txs <: Tuple, R](module: StateModule[F, Path, Owns, Needs, Txs, R])

Derive a TablesProvider for the module's owned schema.

Derive a TablesProvider for the module's owned schema.

This is the canonical way to expose a mounted module's tables to other modules that list them in Needs. The provider captures the module's live tables, so the caller should treat it as an immutable capability and avoid leaking it beyond the intended assembly scope.

Attributes

Returns

a org.sigilaris.core.application.module.provider.TablesProvider exposing the module's owned tables

Source
TablesProviderOps.scala