ash_postgres v0.41.0-rc.5 API Reference
Modules
A postgres extension library for Ash
.
Contains configuration for database check constraints
A postgres data layer that levereges Ecto's postgres capabilities.
A function that maps to ecto's fragment
function
See the postgres docs on https://www.postgresql.org/docs/9.6/pgtrgm.html for more information.
A function that maps to ecto's type
function
Utilities for use in migrations
Generates migrations based on resource snapshots
Helpers used to manage multitenancy
Contains configuration for a database reference
Resources that use the AshPostgres
data layer use a Repo
to access the database.
Ensures that there is a table configured or the resource is polymorphic
Verifies that the repo is configured correctly
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
.