View Source API Reference ash_postgres v1.5.23

Modules

The AshPostgres extension gives you tools to map a resource to a postgres database table.

Represents a configured check constraint on the table backing a resource

A custom aggregate implementation for ecto.

A custom extension implementation.

Represents a custom index on the table backing a resource

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

Introspection functions for

An extension that adds support for the vector type.

A function that maps to ecto's fragment function

Maps to the builtin postgres function ilike.

Maps to the builtin postgres function like.

Maps to the builtin postgres trigram similarity function. Requires pgtrgm extension to be installed.

Maps to the vector cosine distance operator. Requires vector extension to be installed.

A behavior for postgres-specific manual relationship functionality

Utilities for use in migrations

Represents the configuration of a reference (i.e foreign key).

Resources that use AshPostgres.DataLayer use a Repo to access the database.

Represents a custom statement to be run in generated migrations

A thin wrapper around :string for working with tsquery types in calculations.

A thin wrapper around :string for working with tsvector types in calculations.

Postgres specific callbacks for Ash.Type.

Allows configuring how values are translated to default values in migrations.

Mix Tasks

Create the storage for repos in all resources for the given (or configured) apis.

Drop the storage for the given repository.

Generates migrations, and stores a snapshot of your resources.

Runs the pending migrations for the given repository.

Reverts applied migrations in the given repository. Migrations are expected at "priv/YOUR_REPO/migrations" directory of the current application but it can be configured by specifying the :priv key under the repository configuration. Runs the latest applied migration by default. To roll back to a version number, supply --to version_number. To roll back a specific number of times, use --step n. To undo all applied migrations, provide --all.