Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/services/schema-builder/schema-comparison

lib/services/schema-builder/schema-comparison

Schema comparison utilities for detecting changes.

Contains functions for comparing schemas, detecting breaking changes, and generating comparison reports.

Functions

compareSchemas()

compareSchemas(oldSchema, newSchema): SchemaComparison

Compares two schemas and identifies changes.

Parameters

oldSchema

Record<string, unknown>

newSchema

Record<string, unknown>

Returns

SchemaComparison


generateChangeSummary()

generateChangeSummary(comparison): string

Generates a human-readable summary of schema changes.

Parameters

comparison

SchemaComparison

Returns

string


detectTransforms()

detectTransforms(oldSchema, newSchema, changes): TransformSuggestion[]

Detect potential transform rules from schema changes.

Analyzes removed and added fields to identify likely renames. Returns suggestions with confidence scores based on multiple factors.

Parameters

oldSchema

Record<string, unknown>

The existing/previous schema

newSchema

Record<string, unknown>

The new/detected schema

changes

SchemaChange[]

The detected schema changes

Returns

TransformSuggestion[]

Array of transform suggestions

Last updated on