Codegen tooling for mix ash.codegen / mix ash_scylla.gen.
This module is intentionally separate from AshScylla.DataLayer, which
implements the runtime Ash.DataLayer behaviour. None of the functions here
are part of the runtime data-layer contract — they render CQL CREATE TABLE
/ CREATE INDEX statements, render migration files, and persist schema-hash
metadata used for change detection between codegen runs.
Summary
Functions
Computes the meta map for a list of resources.
Filters a list of resources to only those whose schema has changed compared to the previous meta map.
Loads the codegen meta file from disk.
Merges previous meta with updated entries for changed resources.
Saves the codegen meta map to disk.
Functions
Computes the meta map for a list of resources.
Returns a map of resource_key => schema_hash that can be used to detect changes between runs.
Filters a list of resources to only those whose schema has changed compared to the previous meta map.
Returns the list of changed resources.
Loads the codegen meta file from disk.
Returns an empty map if the file doesn't exist or can't be parsed.
Merges previous meta with updated entries for changed resources.
Saves the codegen meta map to disk.