View Source Ash.Registry (ash v2.9.24)
A registry allows you to separate your resources from your api
module, to reduce improve compile times and reduce compile time dependencies.
For example:
defmodule MyApp.MyRegistry do
use Ash.Registry
entries do
entry MyApp.Resource
entry MyApp.OtherResource
end
end
Link to this section Summary
Functions
entries(registry)
deprecated
Callback implementation for Spark.Dsl.explain/2
.
Callback implementation for Spark.Dsl.handle_before_compile/1
.
Callback implementation for Spark.Dsl.handle_opts/1
.
Callback implementation for Spark.Dsl.init/1
.
warn_on_empty?(registry)
deprecated
Link to this section Types
@type t() :: module()
Link to this section Functions
This function is deprecated. use Ash.Registry.Info.entries/1 instead.
Callback implementation for Spark.Dsl.explain/2
.
Callback implementation for Spark.Dsl.handle_before_compile/1
.
Callback implementation for Spark.Dsl.handle_opts/1
.
Callback implementation for Spark.Dsl.init/1
.
This function is deprecated. use Ash.Registry.Info.warn_on_empty?/1 instead.