ash_postgres v0.30.1 AshPostgres View Source

A postgres extension library for Ash.

AshPostgres.DataLayer provides a DataLayer, and a DSL extension to configure that data layer.

The dsl extension exposes the postgres section. See: AshPostgres.DataLayer for more.

Link to this section Summary

Functions

A stringified version of the base_filter, to be used in a where clause when generating unique indexes

Whether or not to create a tenant for a given resource

The template for a managed tenant

Whether or not to update a tenant for a given resource

Whether or not the resource should be included when generating migrations

The configured repo for a resource

Skip generating unique indexes when generating migrations

The configured table for a resource

Link to this section Functions

Link to this function

base_filter_sql(resource)

View Source

A stringified version of the base_filter, to be used in a where clause when generating unique indexes

Link to this function

manage_tenant_create?(resource)

View Source

Whether or not to create a tenant for a given resource

Link to this function

manage_tenant_template(resource)

View Source

The template for a managed tenant

Link to this function

manage_tenant_update?(resource)

View Source

Whether or not to update a tenant for a given resource

Whether or not the resource should be included when generating migrations

The configured repo for a resource

Link to this function

skip_unique_indexes?(resource)

View Source

Skip generating unique indexes when generating migrations

The configured table for a resource