ash_postgres v0.41.5 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

The configured check_constraints for a resource

The configured custom_indexes for a resource

The configured foreign_key_names

The configured identity_index_names

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

A keyword list of customized migration types

The configured polymorphic? for a resource

The configured polymorphic_reference_name for a resource

The configured polymorphic_reference_on_delete for a resource

The configured polymorphic_reference_on_update for a resource

The configured references for a resource

The configured repo for a resource

Skip generating unique indexes when generating migrations

The configured table for a resource

The configured unique_index_names

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

check_constraints(resource)

View Source

The configured check_constraints for a resource

Link to this function

custom_indexes(resource)

View Source

The configured custom_indexes for a resource

Link to this function

foreign_key_names(resource)

View Source

The configured foreign_key_names

Link to this function

identity_index_names(resource)

View Source

The configured identity_index_names

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

Link to this function

migration_types(resource)

View Source

A keyword list of customized migration types

The configured polymorphic? for a resource

Link to this function

polymorphic_name(resource)

View Source

The configured polymorphic_reference_name for a resource

Link to this function

polymorphic_on_delete(resource)

View Source

The configured polymorphic_reference_on_delete for a resource

Link to this function

polymorphic_on_update(resource)

View Source

The configured polymorphic_reference_on_update for a resource

The configured references for a resource

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

Link to this function

unique_index_names(resource)

View Source

The configured unique_index_names