ash_postgres
ash_postgres
Go to latest
  • API Reference
    • Modules
    • Mix Tasks
  • Home
    • Tutorials
    • Topics
    • Reference
  • AshPostgres.DataLayer
    • postgres
  • 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
    • Recursive Relationships
  • About AshPostgres
  • Change Log
    • v2.5.11 (2025-03-11)
    • v2.5.10 (2025-03-06)
    • v2.5.9 (2025-03-06)
    • v2.5.8 (2025-03-06)
    • v2.5.7 (2025-03-04)
    • v2.5.6 (2025-02-25)
    • v2.5.5 (2025-02-17)
    • v2.5.4 (2025-02-17)
    • v2.5.3 (2025-02-14)
    • v2.5.2 (2025-02-11)
    • v2.5.1 (2025-01-27)
    • v2.5.0 (2025-01-20)
    • v2.4.22 (2025-01-13)
    • v2.4.21 (2025-01-06)
    • v2.4.20 (2024-12-26)
    • v2.4.19 (2024-12-26)
    • v2.4.18 (2024-12-20)
    • v2.4.17 (2024-12-16)
    • v2.4.16 (2024-12-12)
    • v2.4.15 (2024-12-06)
    • v2.4.14 (2024-11-27)
    • v2.4.13 (2024-11-26)
    • v2.4.12 (2024-10-30)
    • v2.4.11 (2024-10-23)
    • v2.4.10 (2024-10-23)
    • Security
    • v2.4.9 (2024-10-16)
    • v2.4.8 (2024-10-11)
    • v2.4.7 (2024-10-10)
    • v2.4.6 (2024-10-07)
    • 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
  • AshPostgres.Igniter
    • Summary
    • Functions
      • add_postgres_extension/3
      • list_repos/1
      • repo/2
      • select_repo/2
      • table/2
  • AshPostgres.MigrationCompileCache
    • Summary
    • Functions
      • compile_file/1
      • start_link/1
  • AshPostgres.Functions
  • .Binding
    • Summary
    • Functions
      • args/0
  • .VectorL2Distance
    • 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
      • Additional Repo Configuration
    • Summary
    • Callbacks
      • all_tenants/0
      • create?/0
      • default_constraint_match_type/2
      • default_prefix/0
      • disable_atomic_actions?/0
      • disable_expr_error?/0
      • drop?/0
      • installed_extensions/0
      • migrations_path/0
      • min_pg_version/0
      • on_transaction_begin/1
      • override_migration_type/1
      • prefer_transaction?/0
      • prefer_transaction_for_atomic_updates?/0
      • 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
      • handle_change?/0
      • prepare_change?/0
      • shared_root/2
  • AshPostgres.Timestamptz
    • Summary
    • Functions
      • handle_change?/0
      • prepare_change?/0
  • AshPostgres.TimestamptzUsec
    • Summary
    • Functions
      • handle_change?/0
      • prepare_change?/0
  • AshPostgres.Tsquery
    • Summary
    • Functions
      • handle_change?/0
      • prepare_change?/0
  • AshPostgres.Tsvector
    • Summary
    • Functions
      • handle_change?/0
      • prepare_change?/0
  • AshPostgres.Type
    • Summary
    • Callbacks
      • postgres_reference_expr/3
      • 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

Home

View Source

Logo Logo

Elixir CI License: MIT Hex version badge Hexdocs badge

AshPostgres

Welcome! AshPostgres is the PostgreSQL data layer for Ash Framework.

Tutorials

  • Get Started

Topics

  • What is AshPostgres?

Resources

  • References
  • Polymorphic Resources

Development

  • Migrations and tasks
  • Testing
  • Upgrading to 2.0

Advanced

  • Expressions
  • Manual Relationships
  • Schema Based Multitenancy

Reference

  • AshPostgres.DataLayer DSL
← Previous Page API Reference
Next Page → AshPostgres.DataLayer

Hex Package Hex Preview (current file) Download ePub version

Built using ExDoc (v0.37.2) for the Elixir programming language