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11
v0.38.10
v0.38.9
v0.38.8
v0.38.7
v0.38.6
v0.38.5
v0.38.4
v0.38.3
v0.38.2
v0.38.1
v0.38.0
v0.37.8
v0.37.7
v0.37.6
v0.37.5
v0.37.4
v0.37.3
v0.37.2
v0.37.1
v0.37.0
v0.36.5
v0.36.4
v0.36.3
v0.36.2
v0.36.1
v0.36.0
v0.35.5
v0.35.4
v0.35.3
v0.35.1
v0.34.5
v0.34.4
v0.34.3
v0.34.2
v0.34.1
v0.34.0
v0.33.1
v0.33.0
v0.32.2
v0.32.1
v0.32.0
v0.31.1
v0.30.1
v0.29.6
v0.29.5
v0.29.4
v0.29.3
v0.29.2
v0.29.1
v0.28.1
v0.28.0
v0.27.0
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.1
v0.22.0
v0.21.0
v0.20.1
v0.20.0
v0.19.0
v0.18.0
v0.17.0
v0.16.1
v0.15.0
v0.14.0
v0.13.0
v0.12.1
v0.12.0
v0.11.2
v0.10.0
v0.9.0
v0.8.0
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.1
v0.2.0
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.1-rc.2
v0.1.1-rc.1
v0.1.1-rc.0
v0.1.0
Pages
Modules
Mix
Tasks
API Reference
Modules
Mix Tasks
Home
Tutorials
Topics
Reference
Tutorials
Get Started With Postgres
Installation
Adding AshPostgres to your resources
Setting AshPostgres up with an existing database
More fine grained control
Resources
What is AshPostgres?
References
On Delete
On Update
Nothing vs Restrict
Polymorphic Resources
Table specific actions
Migrations
Migrations
Tasks
Basic Workflow
Running Migrations in Production
Testing with AshPostgres
Upgrading to 2.0
gen_random_uuid() is now the default for generated uuids
utc datetimes that default to &DateTime.now/0 are now cast to UTC
Expressions
Like and ILike
Trigram similarity
Schema Based Multitenancy
Generated migrations
Automatically managing tenants
Manual Relationships
Example
About AshPostgres
Change Log
v2.4.5 (2024-10-06)
v2.4.4 (2024-09-29)
v2.4.3 (2024-09-27)
v2.4.2 (2024-09-24)
v2.4.1 (2024-09-16)
v2.4.0 (2024-09-13)
v2.3.1 (2024-09-05)
v2.3.0 (2024-09-05)
v2.2.5 (2024-09-04)
v2.2.4 (2024-09-03)
v2.2.3 (2024-08-18)
v2.2.2 (2024-08-17)
v2.2.1 (2024-08-16)
v2.2.0 (2024-08-13)
v2.1.19 (2024-08-12)
v2.1.18 (2024-08-09)
v2.1.17 (2024-07-27)
v2.1.16 (2024-07-25)
v2.1.15 (2024-07-23)
v2.1.14 (2024-07-22)
v2.1.13 (2024-07-22)
v2.1.12 (2024-07-19)
v2.1.10 (2024-07-18)
v2.1.9 (2024-07-18)
v2.1.8 (2024-07-17)
v2.1.7 (2024-07-17)
v2.1.6 (2024-07-16)
v2.1.5 (2024-07-15)
v2.1.4 (2024-07-14)
v2.1.3 (2024-07-14)
v2.1.2 (2024-07-13)
v2.1.1 (2024-07-10)
v2.1.0 (2024-07-10)
v2.0.12 (2024-06-20)
v2.0.11 (2024-06-19)
v2.0.10 (2024-06-18)
v2.0.9 (2024-06-13)
v2.0.8 (2024-06-06)
v2.0.7 (2024-06-06)
v2.0.6 (2024-05-29)
v2.0.5 (2024-05-24)
v2.0.4 (2024-05-23)
v2.0.3 (2024-05-22)
v2.0.2 (2024-05-15)
v2.0.1 (2024-05-12)
v2.0.0
DSLs
DSL: AshPostgres.DataLayer
postgres
postgres.custom_indexes
postgres.custom_indexes.index
postgres.custom_statements
postgres.custom_statements.statement
postgres.manage_tenant
postgres.references
postgres.references.reference
postgres.check_constraints
postgres.check_constraints.check_constraint
AshPostgres.Igniter
Summary
Functions
add_postgres_extension/3
list_repos/1
repo/2
select_repo/2
table/2
AshPostgres.Functions
.Binding
Summary
Functions
args/0
AshPostgres
AshPostgres
Summary
Functions
base_filter_sql/1
check_constraints/1
custom_indexes/1
custom_statements/1
exclusion_constraint_names/1
foreign_key_names/1
identity_index_names/1
manage_tenant_create?/1
manage_tenant_template/1
manage_tenant_update?/1
migrate?/1
migration_types/1
polymorphic?/1
polymorphic_name/1
polymorphic_on_delete/1
polymorphic_on_update/1
references/1
repo/1
schema/1
skip_unique_indexes/1
table/1
unique_index_names/1
AshPostgres.DataLayer
Summary
Functions
add_known_binding/3
codegen/1
from_ecto/1
install/4
install/5
migrate/1
postgres/1
rollback/1
setup/1
tear_down/1
to_ecto/1
AshPostgres.Repo
Sections
Installed Extensions
Transaction Hooks
Summary
Callbacks
all_tenants/0
create?/0
default_prefix/0
drop?/0
installed_extensions/0
migrations_path/0
min_pg_version/0
on_transaction_begin/1
override_migration_type/1
tenant_migrations_path/0
Utilities
AshPostgres.ManualRelationship
Summary
Callbacks
ash_postgres_join/6
ash_postgres_subquery/4
Introspection
AshPostgres.CheckConstraint
Summary
Functions
schema/0
AshPostgres.CustomExtension
Summary
Callbacks
install/1
uninstall/1
AshPostgres.CustomIndex
Summary
Functions
fields/0
name/2
schema/0
transform/1
AshPostgres.DataLayer.Info
Summary
Functions
base_filter_sql/1
calculation_to_sql/2
calculations_to_sql/1
check_constraints/1
custom_indexes/1
custom_statements/1
exclusion_constraint_names/1
foreign_key_names/1
global_upsert_keys/1
identity_index_names/1
identity_where_to_sql/2
identity_wheres_to_sql/1
manage_tenant_create?/1
manage_tenant_template/1
manage_tenant_update?/1
migrate?/1
migration_defaults/1
migration_ignore_attributes/1
migration_types/1
min_pg_version/1
pg_version_matches?/2
polymorphic?/1
polymorphic_name/1
polymorphic_on_delete/1
polymorphic_on_update/1
reference/2
references/1
repo/2
schema/1
simple_join_first_aggregates/1
skip_identities/1
skip_unique_indexes/1
storage_types/1
table/1
unique_index_names/1
AshPostgres.Reference
Summary
Functions
schema/0
AshPostgres.Statement
Summary
Functions
fields/0
schema/0
Types
AshPostgres.Ltree
Sections
Postgres Extension
Constraints
Summary
Types
segment/0
t/0
Functions
shared_root/2
AshPostgres.Timestamptz
AshPostgres.TimestamptzUsec
AshPostgres.Tsquery
AshPostgres.Tsvector
AshPostgres.Type
Summary
Callbacks
value_to_postgres_default/3
Extensions
AshPostgres.Extensions.Vector
Summary
Functions
decode/1
encode/1
format/1
init/1
matching/1
Custom Aggregates
AshPostgres.CustomAggregate
Summary
Callbacks
dynamic/2
Postgres Migrations
AshPostgres.Migration
Summary
Functions
create_enum/2
drop_enum/1
EctoMigrationDefault
Summary
Types
t/0
Functions
to_default/1
Expressions
AshPostgres.Functions
.ILike
Summary
Functions
args/0
.Like
Summary
Functions
args/0
.TrigramSimilarity
Summary
Functions
args/0
.VectorCosineDistance
Summary
Functions
args/0
mix ash_postgres.create
Sections
Examples
Command line options
mix ash_postgres.drop
Sections
Examples
Command line options
mix ash_postgres.gen.resources
Sections
Example
Domain
Options
Tables
mix ash_postgres.generate_migrations
Summary
Functions
run/1
mix ash_postgres.install
mix ash_postgres.migrate
Sections
Examples
Command line options
mix ash_postgres.rollback
Sections
Examples
Command line options
mix ash_postgres.squash_snapshots
Sections
Examples
Command line options
Summary
Functions
run/1
Search documentation of ash_postgres
Settings
View Source
AshPostgres.Reference
(ash_postgres v2.4.5)
Represents the configuration of a reference (i.e foreign key).
Summary
Functions
schema()
Functions
schema()
×