View Source AshCubDB.Migration (ash_cubdb v0.6.2)

We store and check metadata when opening a database to ensure that the resource and attributes match, and possibly perform migrations.

Summary

Functions

Check that a newly opened database doesn't need to be migrated.

Functions

@spec check(GenServer.server(), Ash.Resource.t()) :: :ok | {:error, any()}

Check that a newly opened database doesn't need to be migrated.