Class DatabaseSchema
Static entry point for offline schema inspection and dry-run validation. Opens the database read-only (no user component registration) to extract persisted metadata.
public static class DatabaseSchema
- Inheritance
-
DatabaseSchema
- Inherited Members
Methods
Inspect(string)
Inspects a database file and returns a report of its persisted schema state. Opens a temporary engine instance, reads system tables, and disposes.
public static DatabaseSchemaReport Inspect(string path)
Parameters
pathstringPath to the database (the
.typhonbundle directory, or any path whose stem is the database name).
Returns
- DatabaseSchemaReport
A DatabaseSchemaReport with all persisted component and field metadata.
ValidateEvolution(string, Action<ISchemaRegistrar>)
Performs a dry-run validation of schema evolution against a persisted database.
Opens a temporary engine, captures user component registrations via configure, computes diffs, and checks migration paths — without
actually modifying the database.
public static EvolutionValidationResult ValidateEvolution(string path, Action<ISchemaRegistrar> configure)
Parameters
pathstringPath to the database file.
configureAction<ISchemaRegistrar>Action that registers components and migrations on the registrar.
Returns
- EvolutionValidationResult
An EvolutionValidationResult with per-component diff results.