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.rawQueryPRAGMA table_info on SQLite, information_schema.columns on PostgreSQL. No adapter API changes needed.

Typedefs

SchemaShape = ({Set<String> allKeys, int rowCount, Set<String> universalKeys})
The observed shape of a store.