Roux.Database.TableOwner (roux v0.2.2)

Copy Markdown View Source

Owns all framework ETS tables during normal operation.

On startup, attempts to reclaim tables from Roux.Database.Heir. If no tables are held (fresh start or heir crash), creates them from scratch. All tables are created with heir: {heir_pid, tag} so they transfer automatically if this process dies.

This process does nothing else — no computation, no message handling beyond table queries. Its sole purpose is to anchor ETS ownership.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the map of %{tag => tid} for all managed ETS tables.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_tables(pid)

@spec get_tables(pid()) :: %{required(atom()) => :ets.tid()}

Returns the map of %{tag => tid} for all managed ETS tables.