GenServer that discovers and indexes PgRest resources at startup.
Uses ETS for concurrent read access — lookups don't serialize through the GenServer.
Summary
Functions
Returns a specification to start this module under a supervisor.
Looks up a resource by table name (string) or module (atom).
Returns all registered resource configs.
Starts the registry GenServer.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Looks up a resource by table name (string) or module (atom).
@spec list_resources() :: [map()]
Returns all registered resource configs.
@spec start_link(keyword()) :: GenServer.on_start()
Starts the registry GenServer.
Options
:otp_app- application to scan for PgRest resources (auto-discovery):modules- explicit list of modules to register (skips discovery):name- GenServer name (default:PgRest.Registry)