2023-09-27 16:13:40 +13:00
|
|
|
<!--
|
|
|
|
This file was generated by Spark. Do not edit it by hand.
|
|
|
|
-->
|
2023-09-15 09:16:35 +12:00
|
|
|
# DSL: Ash.Registry.Dsl
|
|
|
|
|
|
|
|
A small DSL for declaring an `Ash.Registry`. Not generally necessary any longer.
|
|
|
|
|
|
|
|
`Ash.Registry` can be used generically, but the main way it is used in Ash is to provide a compile-time registry for an Ash Api.
|
|
|
|
|
|
|
|
|
|
|
|
## entries
|
|
|
|
List the entries present in this registry
|
|
|
|
|
2023-09-16 04:16:54 +12:00
|
|
|
### Nested DSLs
|
2023-09-15 09:16:35 +12:00
|
|
|
* [entry](#entries-entry)
|
|
|
|
|
2023-09-16 04:16:54 +12:00
|
|
|
|
2023-09-15 09:16:35 +12:00
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
entries do
|
|
|
|
entry MyApp.User
|
|
|
|
entry MyApp.Post
|
|
|
|
entry MyApp.Comment
|
|
|
|
end
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Options
|
2023-09-27 16:13:40 +13:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Default</th>
|
|
|
|
<th colspan=2>Docs</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td style="text-align: left">
|
|
|
|
<a id="entries-warn_on_empty?" href="#entries-warn_on_empty?">
|
|
|
|
<span style="font-family: Inconsolata, Menlo, Courier, monospace;">
|
|
|
|
warn_on_empty?
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left">
|
|
|
|
<code class="inline">boolean</code>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left">
|
|
|
|
<code class="inline">true</code>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left" colspan=2>
|
|
|
|
Set to `false` to ignore warnings about an empty registry
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-09-15 09:16:35 +12:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## entries.entry
|
2023-09-16 03:41:41 +12:00
|
|
|
```elixir
|
|
|
|
entry entry
|
|
|
|
```
|
2023-09-15 09:16:35 +12:00
|
|
|
|
|
|
|
|
|
|
|
A reference to an ash module (typically a resource)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
entry MyApp.User
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Arguments
|
2023-09-27 16:13:40 +13:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Default</th>
|
|
|
|
<th colspan=2>Docs</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td style="text-align: left">
|
|
|
|
<a id="entry-entry" href="#entry-entry">
|
|
|
|
<span style="font-family: Inconsolata, Menlo, Courier, monospace;">
|
|
|
|
entry
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<sup style="color: red">*</sup>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left">
|
|
|
|
<code class="inline">atom</code>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left" colspan=2>
|
|
|
|
The referenced module
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-09-15 09:16:35 +12:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Introspection
|
|
|
|
|
|
|
|
Target: `Ash.Registry.Entry`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|