Foundry.Context.PendingMigrations (foundry v0.1.3)

Copy Markdown

Determines which modules have pending Ash migrations by running mix ash.codegen --check once per project invocation.

Do not call check/1 per module — it spawns one Mix process per call. Call once, then use pending?/2 to query individual modules.

Summary

Functions

check(project_root)

@spec check(project_root :: String.t()) :: {:ok, MapSet.t()} | {:error, term()}

pending?(module, pending_set)

@spec pending?(module :: module(), pending_set :: MapSet.t()) :: boolean()