Elixir, Phoenix and Ash
Links
Elixir
Elixir Homepage GitHub Repository
Phoenix Framework
Phoenix Homepage GitHub Repository
Ash Framework
Ash Homepage GitHub Repository
Stefan Wintermeyer
Work related
Training and Consulting SpeakerDeck
Phoenix projects
vutuv Schulferien Deutschland Feriendaten Deutschland
Private
Personal Homepage
Social Media
Twitter Facebook Instagram

An Elixir, Phoenix and Ash Beginner's Guide

    • Preface
    • Elixir
    • Phoenix Framework
      • The Base Setup
      • Hello World!
      • The conn Struct
        • Static Clock
      • Links
      • Static files
        • Images
      • CSS
    • LiveView
      • Light Switch
      • Clock
      • Counter
      • Airport Code Search
      • Autocomplete
    • Router
      • Display all existing routes
      • Params
      • Query Strings
      • Multilevel Paths
      • Wildcards
    • Ecto
      • Create a Database
      • Create a Table
      • Create a Dataset
      • Validations
        • Uniqueness Validations
      • Seeds
      • Querying the Database
      • Update an Entry
      • Associations
    • Ash Framework
      • Resources
      • Relationships
        • belongs_to
        • has_many
        • many_to_many
        • has_one
      • Constraints
      • Validations
      • Identities
      • PostgreSQL
        • Minimal
        • Phoenix
    • Recipes
    • Acknowledgments
An Elixir, Phoenix and Ash Beginner's Guide main
  • An Elixir, Phoenix and Ash Beginner's Guide
    • main
  • An Elixir, Phoenix and Ash Beginner's Guide
  • Ash Framework
  • PostgreSQL
Edit this Page

PostgreSQL Data Layer

Many of the examples in the Ash chapters utilize ETS as the database. This choice is primarily due to its quick setup, making it ideal for tutorials. However, in real-world applications, you might prefer using a SQL database. In this chapter, I’ll demonstrate how to set up PostgreSQL in an Ash application.

  • PostgreSQL Data Layer Minimal Setup

  • PostgreSQL Data Layer Ash + Phoenix Framework Setup

Copyright (C) 2020-2025 Stefan Wintermeyer - wintermeyer-consulting.de - Twitter: @wintermeyer

This webpage was built with Antora.