source/core/migration/auto/schema_introspector library
Reads the actual stored shape of an entity's data so the auto-migration differ can compare it against the declared DatumSchema.
Classes
-
RawDataSchemaIntrospector<
T extends DatumEntityInterface> -
Introspects a schemaless store (Hive, in-memory, …) from its raw rows —
one
getAllRawData()pass computing the key union, intersection, and row count. - SchemaIntrospector
- Produces a SchemaShape for one entity store.
- SqlSchemaIntrospector
-
Introspects a SQL table's real columns through the adapter's own
RawQueryCapable.rawQuery —
PRAGMA table_infoon SQLite,information_schema.columnson PostgreSQL. No adapter API changes needed.