mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
2233a33523
docs: update cheat shets fix: honor tenant option on aggregates closes #805
43 lines
1 KiB
Markdown
43 lines
1 KiB
Markdown
<!--
|
|
This file was generated by Spark. Do not edit it by hand.
|
|
-->
|
|
# DSL: Ash.DataLayer.Ets
|
|
|
|
An ETS (Erlang Term Storage) backed Ash Datalayer, for testing and lightweight usage.
|
|
|
|
Remember, this does not have support for transactions! This is not recommended for production
|
|
use, especially in multi-user applications. It can, however, be great for prototyping.
|
|
|
|
|
|
## ets
|
|
A section for configuring the ets data layer
|
|
|
|
|
|
|
|
|
|
### Examples
|
|
```
|
|
ets do
|
|
# Used in testing
|
|
private? true
|
|
end
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Options
|
|
|
|
| Name | Type | Default | Docs |
|
|
|------|------|---------|------|
|
|
| [`private?`](#ets-private?){: #ets-private? } | `boolean` | `false` | Sets the ets table protection to private, and scopes it to only this process. The table name will not be used directly if this is true, to allow multiple processes to use this resource separately. |
|
|
| [`table`](#ets-table){: #ets-table } | `atom` | | The name of the table. Defaults to the resource name. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>
|