Skip to main content

Module schema_cache

Module schema_cache 

Source
Expand description

Data-source schema cache backed by unified shape.lock artifacts.

This replaces the legacy shape.database.lock.json sidecar file and keeps external schema state in the shared lockfile model.

Structs§

DataSourceSchemaCache
Top-level cache model for external data-source schemas.
EntitySchema
Schema for a single data-source entity.
FieldSchema
Schema for a single field.
SchemaCacheDiagnostic
Diagnostic emitted while loading schema artifacts from shape.lock.
SourceSchema
Schema for a single data-source URI.

Constants§

CACHE_FILENAME
Top-level cache file path. Kept for call-site compatibility.

Functions§

default_cache_path
Resolve the default shape.lock path from the current working directory.
load_cached_source_for_uri
Load one cached source schema by URI.
load_cached_source_for_uri_with_diagnostics
Load one cached source schema by URI and keep non-fatal diagnostics for stale/invalid artifacts that were ignored.
load_cached_type_schemas_for_uri_prefixes
Load cached schemas and convert matching sources into runtime TypeSchemas.
load_cached_type_schemas_for_uri_prefixes_with_diagnostics
Like load_cached_type_schemas_for_uri_prefixes but also returns non-fatal diagnostics for invalid/stale artifacts that were ignored.
set_default_cache_path
Override the default lock/cache path used by extension-side schema cache helpers during this process.
source_schema_from_nb
Decode a SourceSchema from a typed-object ValueWord payload.
source_schema_from_wire
Decode a SourceSchema from a shape-wire object payload.
source_schema_to_nb
Convert a SourceSchema into a typed-object ValueWord payload.