- Notifications
You must be signed in to change notification settings - Fork0
A postgresql datalayer for the Ash Framework
License
mindok/ash_postgres
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
AshPostgres supports all the capabilities of an Ash data layer. AshPostgres is the primary Ash data layer.
Custom Predicates:
AshPostgres.Predicates.Trigram
See the DSL documentation inAshPostgres.DataLayer for DSL documentation
Addash_postgres to yourmix.exs file.
{:ash_postgres,"~> 1.3.6"}
To use this data layer, you need to chage your Ecto Repo's fromuse Ecto.Repo,touse AshPostgres.Repo. because AshPostgres adds functionality to Ecto Repos.
Then, configure each of yourAsh.Resource resources by addinguse Ash.Resource, data_layer: AshPostgres.DataLayer like so:
defmoduleMyApp.SomeResourcedouseAsh.Resource,data_layer:AshPostgres.DataLayerpostgresdorepoMyApp.Repotable"table_name"endattributesdo# ... Attribute definitionsendend
See the documentation forMix.Tasks.AshPostgres.GenerateMigrations for how to generatemigrations from your resources
Ash is made possible by its excellent community!
About
A postgresql datalayer for the Ash Framework
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Elixir100.0%