Skip to main content

Function: createSchemaRepository()

createSchemaRepository(type, context, options): SchemaRepository

Defined in: packages/core/src/composition/schema-repository.ts:40

Constructs a SchemaRepository implementation for the given adapter type.

Returns the abstract SchemaRepository port type — callers never see the concrete class.

Parameters​

type​

"fs"

Adapter type discriminant; determines which implementation is used

context​

SchemaRepositoryContext

Domain context shared across all adapter types

options​

FsSchemaRepositoryOptions

Filesystem adapter options

Returns​

SchemaRepository

A fully constructed SchemaRepository bound to the given workspace