Latest #ash-postgres Threads Top

Abhinav1217
I have few node microservices connected to single postgres db. I also have an elixir service for realtime message passing between BE and ...
New
jan-mb-me
Hi, I stumbled over this snippet of a query generated by an update action: SET “updated_at” = (CASE WHEN $1::timestamp != r0.“last_quer...
New
andreh
Hi! First, I’d like to thank the Ash team. Ash solves so many problems! I’m planning to incrementally migrate my whole app to it. I’ve g...
New
sezaru
I have this statement in my resource to create a index: statement :hnsw_embedding_index do up """ CREATE INDEX IF ...
New
sezaru
I have this Ash.Query in my code: CronJob |> Ash.Query.for_read(:due) |> Ash.Query.lock("FOR UPDATE SKIP L...
New
moxley
I have a nested set of action calls, like this: Action A → Action B When the change function of Action B adds an error to its changeset...
New
sezaru
Is there support for using Postgres ENUM with Ash.Type.Enum? I do know that you can do that if you create the migration yourself like it...
New
spicychickensauce
I’m evaluating migrating an existing application to ash and it’s looking pretty good so far. However, I got stuck at this: My app curren...
New
escargot33
I am currently faced with the following problem: I have a Person resource There are several other resource in the same domain that refe...
New
samoloth
Hi, since my project will require some analytics, I’ve decided to use Postgres + DuckDB via pg_duckdb extension. I’ve spinned up an offi...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

New
Benjamin-Philip
Introduction Ash seems to be great with regular relational data. However when I tried it out for a hobby project, where I had to represen...
New
samoloth
Hi! I’ve just started using Ash due to its multitenancy capabilities. Overall experience is great so far, but I am considering following ...
New
zac
I just spent half a day trying to figure out how to get around this: (DBConnection.OwnershipError) cannot find ownership process for #P...
New
zac
I have two resources, Teams and Users, and these are related using the relationship resource Members. I’m trying to use manage_relationsh...
New
juliolinarez
I realized that Ash generates timestamps in the application, which is what I want. To be sure, I removed the default values for those fie...
New
clemensm
Hi everyone I’ve recently started to give Ash a try with a greenfield, small project for a customer of mine. So far I really like the ab...
New
zac
I’m just getting my head around basic AshAuthorization and still struggle with some of the relationship DSL… and I’ve no idea how to tack...
New
spicychickensauce
I’m evaluating migrating an existing application to ash and it’s looking pretty good so far. However, I got stuck at this: My app curren...
New
zac
Has anyone set up their Ash Framework Postgres app deployment (and, most importantly, migration) on Fly.io? I’m trying to figure out wha...
New
explorer-trail
In my multi-tenant application, when the user registers, I want to create : a user record an organisation / tenant and some records int...
New
sezaru
Is there support for using Postgres ENUM with Ash.Type.Enum? I do know that you can do that if you create the migration yourself like it...
New
moxley
I’m trying to understand the Ash filter expression syntax for working with json arrays within a jsonb column in ash_postgres. I have a j...
New
jan-mb-me
Hi, I stumbled over this snippet of a query generated by an update action: SET “updated_at” = (CASE WHEN $1::timestamp != r0.“last_quer...
New
RicoTrevisan
Say I’ve got a resource defmodule Log do ... attributes do uuid_primary_key :id attribute :fiber_id, :string attribute :pr...
New

Last Three Year's Trending Top

mudspot
Hi all I have started a brand new project. Usually, I would have created a pair of timestamp attributes created_at and updated_at. Now ...
New
cloedu87
Hi there, I’m working with ash now a couple of weeks and I’m quite a big fan :slight_smile: but now I’m struggling with a - so it seems ...
New
lardcanoe
I am trying to parse a user generated filter that will apply to jsonb field (that is just a map, not an embedded resource). The field is...
New
zac
I am deeply confused by what’s going on. I have two entities – Sprint and ActivityStereotype. The former is the “parent,” meaning, spri...
New
sezaru
I have a system that needs to bulk load a bunch of data from time to time. One way to speed that load process is to delete some of the i...
New
zac
I’m having some trouble with EctoMigrationDefault – probably because I’m a novice with Elixir custom types and protocols, and I’m clearly...
New
torepettersen
Hi, I am trying to use Ash in a library, and I am wondering if that is a good idea? Seems like the biggest problem I have, is that my l...
New
sezaru
Hey, is there a way to use a custom index as a identity for upsert? For example, I have a resource that has two nullable fields. I want...
New
cloedu87
Hi There, On the mission to find a ash friendly way to add versioning to my project. I found ash-paper-trail. My requirements were: p...
New
sezaru
Is there any global configuration I change use to change both the default Ash.UUID.generate/0 function and gen_random_uuid() functions fo...
New
sezaru
In my system I’m adding a second repo to connect. To do that I did the following changes: config/config.exs config :marketplace, Market...
New
dewetblomerus
I am trying to filter records by a calculated interval. My resource has these two attributes: attribute :retry_at, :utc_datetime, a...
New
jason.o
Where Post has_many Comments, I’d like to define a calculation in Post that essentially produces the following query. What’s the expressi...
New
msonawane
Hello, I am trying to get search results with postgres trgm like below SELECT t, similarity(t, 'word') AS sml FROM test_trgm WHERE ...
New
sezaru
So, I’m importing millions of rows in my system to a resource that has some fields (around 7 fields) that are embedded resources. I’m in...
New

Trending Over Three Years Top

sezaru
I have the following resource in my system: defmodule Pacman.Markets.Record do @moduledoc false use Ash.Resource, data_layer: A...
New
statsdatacode
Question Is it possible to use a calculation in the grouping for an aggregate? Problem I am attempting to group by a calculated value ...
New
FlyingNoodle
Does ash have the concept of “computed” fields? Ie something like attributes do attribute :status, :atom, constraints: [:open, :closed...
New
sezaru
Ash has a pretty cool feature that will auto generate migrations for changes in the resources. This is done by having “snapshot” json fil...
New
zac
I feel like there should be an easy way to do this, without creating a (relatively complicated) custom validation. But after combing the ...
New
sezaru
Let’s say I have this resource; defmodule A do ... relationships do belongs_to :b, B do allow_nil? false attribute_w...
New
tellesleandro
Following the documentation at Ash.Query — ash v2.21.5, if I write Ash.Query.build(LGS.Operacional.Estadia, limit: 1) |> LGS.Operacion...
New
jason.o
My recent Ash postgres migration includes the following, and it’s causing the above error on Render.com because their managed postgres in...
New
mudspot
Hi, Given an AshResource, how do I load data using raw sql statements? PS. Use case: We have an existing sql load script that has compl...
New
mindok
We have an Ash resource defined as polymorphic: defmodule MyApp.Location do use Ash.Resource, data_layer: AshPostgres.DataLayer p...
New
BryanJBryce
Has anyone had the experience of adding Ash to a project that’s already in production? I’m trying to figure out what all you would do, a...
New
sangeethailango
Hello, fellow learners. I am learning the Ash framework. As a part of my learning journey, I have set up an elixir project with Ash as a...
New
mikesax
I’m starting to play with Ash, because I feel it will give me the DRYness of Rails and the clarity of Elixir & Phoenix. I roughly fol...
New
BryanJBryce
Does Ash support defining exclusion constraints on resources with the DSL (maybe that’s a Postgres specific thing?). I’m wanting to enfo...
New
westbaystars
Porting a multi-lingual site from using a native XML database to Postgres with JSONB fields, I’m running into problems when I want to fil...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement