#
View Source Ash.Registry (ash v2.6.31)

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,
        extensions: [Ash.Registry.ResourceValidations]
        # This extension adds some simple validations, for example that
        # all related resources are also present in this registry.

      entries do
        entry MyApp.Resource
        entry MyApp.OtherResource
      end
    end

# Link to this section Summary

## Types

t()

## Functions

default_extension_kinds()
default_extensions()
entries(registry) deprecated

See `Ash.Registry.Info.entries/1`.

explain(_, _)

Callback implementation for `Spark.Dsl.explain/2`.

handle_before_compile(opts)

Callback implementation for `Spark.Dsl.handle_before_compile/1`.

handle_opts(opts)

Callback implementation for `Spark.Dsl.handle_opts/1`.

init(opts)

Callback implementation for `Spark.Dsl.init/1`.

many_extension_kinds()
single_extension_kinds()
warn_on_empty?(registry) deprecated

See `Ash.Registry.Info.warn_on_empty?/1`.

# Link to this section Types

Link to this type

# t()

View Source

    @type t() :: module()

# Link to this section Functions

Link to this function

# default_extension_kinds()

View Source
Link to this function

# default_extensions()

View Source
Link to this function

# entries(registry)

View Source
This function is deprecated. use Ash.Registry.Info.entries/1 instead.

See `Ash.Registry.Info.entries/1`.

Link to this function

# explain(_, _)

View Source

Callback implementation for `Spark.Dsl.explain/2`.

Link to this function

# handle_before_compile(opts)

View Source

Callback implementation for `Spark.Dsl.handle_before_compile/1`.

Link to this function

# handle_opts(opts)

View Source

Callback implementation for `Spark.Dsl.handle_opts/1`.

Link to this function

# init(opts)

View Source

Callback implementation for `Spark.Dsl.init/1`.

Link to this function

# many_extension_kinds()

View Source
Link to this function

# single_extension_kinds()

View Source
Link to this function

# warn_on_empty?(registry)

View Source
This function is deprecated. use Ash.Registry.Info.warn_on_empty?/1 instead.

See `Ash.Registry.Info.warn_on_empty?/1`.