ash_postgres v0.25.4 AshPostgres.DataLayer View Source

A postgres data layer that levereges Ecto's postgres capabilities.

Link to this section Summary

Functions

Postgres data layer configuration

Link to this section Functions

Link to this macro

postgres(body)

View Source (macro)

Postgres data layer configuration

Options

  • :repo - Required. The repo that will be used to fetch your data. See the AshPostgres.Repo documentation for more

  • :migrate? - Whether or not to include this resource in the generated migrations with mix ash.generate_migrations The default value is true.

  • :base_filter_sql - A raw sql version of the base_filter, e.g representative = true. Required if trying to create a unique constraint on a resource with a base_filter

  • :skip_unique_indexes - Skip generating unique indexes when generating migrations The default value is false.

  • :table - Required. The table to store and read the resource from

Sections