View Source AshPostgres.DataLayer.Info (ash_postgres v2.1.17)

Introspection functions for

Summary

Functions

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

A keyword list of calculations to their sql representation

The configured check_constraints for a resource

The configured custom_indexes for a resource

The configured custom_statements for a resource

The configured exclusion_constraint_names

The configured foreign_key_names

A list of keys to always include in upserts.

The configured identity_index_names

A keyword list of identity names to the sql representation of their where clauses

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 defaults

A list of attributes to be ignored when generating migrations

A keyword list of customized migration types

Gets the resource's repo's postgres version

Checks a version requirement against the resource's repo's postgres version

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 reference for a given relationship of a resource

The configured references for a resource

The configured repo for a resource

The configured schema for a resource

Identities not to include in the migrations

Skip generating unique indexes when generating migrations

A keyword list of customized storage types

The configured table for a resource

The configured unique_index_names

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

calculation_to_sql(resource, calc)

View Source
Link to this function

calculations_to_sql(resource)

View Source

A keyword list of calculations to their sql representation

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

custom_statements(resource)

View Source

The configured custom_statements for a resource

Link to this function

exclusion_constraint_names(resource)

View Source

The configured exclusion_constraint_names

Link to this function

foreign_key_names(resource)

View Source

The configured foreign_key_names

Link to this function

global_upsert_keys(resource)

View Source

A list of keys to always include in upserts.

Link to this function

identity_index_names(resource)

View Source

The configured identity_index_names

Link to this function

identity_where_to_sql(resource, identity)

View Source
Link to this function

identity_wheres_to_sql(resource)

View Source

A keyword list of identity names to the sql representation of their where clauses

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_defaults(resource)

View Source

A keyword list of customized migration defaults

Link to this function

migration_ignore_attributes(resource)

View Source

A list of attributes to be ignored when generating migrations

Link to this function

migration_types(resource)

View Source

A keyword list of customized migration types

Link to this function

min_pg_version(resource)

View Source

Gets the resource's repo's postgres version

Link to this function

pg_version_matches?(resource, requirement)

View Source

Checks a version requirement against the resource's repo's postgres version

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

Link to this function

reference(resource, relationship)

View Source

The configured reference for a given relationship of a resource

The configured references for a resource

Link to this function

repo(resource, type \\ :mutate)

View Source

The configured repo for a resource

The configured schema for a resource

Link to this function

simple_join_first_aggregates(resource)

View Source
Link to this function

skip_identities(resource)

View Source

Identities not to include in the migrations

Link to this function

skip_unique_indexes(resource)

View Source

Skip generating unique indexes when generating migrations

A keyword list of customized storage types

The configured table for a resource

Link to this function

unique_index_names(resource)

View Source

The configured unique_index_names