ash_postgres
ash_postgres copied to clipboard
The PostgreSQL data layer for Ash Framework
Not so much a request as just recording this here for posterity since I'm unlikely to have time to loop back and make it all work nicely. If you want...
**Is your feature request related to a problem? Please describe.** Destructive actions are commented out in generated migrations, but it's not clear to the user that something in the migration...
**Describe the bug** Adding a specific size for a string/varchar field will not show in the migration file if the column already exists from another migration. **To Reproduce** First create...
**Is your feature request related to a problem? Please describe.** The [Supavisor](https://github.com/supabase/supavisor) proxy for Postgres offers several benefits, the main one being the elimination of long-lived idle database connections. It...
So `ash_postgres.generate_migrations` takes an `--apis` option, but it defaults to the contents of the application's `ash_apis` configuration in the application environment. This is good DX and I endorse it. I...
**Describe the bug** I noticed that the ash functions are duplicated in the install extensions migration: ```elixir def up do execute(""" CREATE OR REPLACE FUNCTION ash_elixir_or(left BOOLEAN, in right ANYCOMPATIBLE,...
Reproduce error "** (KeyError) key :actor not found in: %{}" while doing calculations across domains
### Contributor checklist - [ ] Bug fixes include regression tests - [x] Features include unit/acceptance tests
**Describe the bug** The `AlterDeferrability` operation does not respect schema prefixes, which results in broken migrations. https://github.com/ash-project/ash_postgres/blob/459d853d28ffb03085632670a16213abce6842f5/lib/migration_generator/operation.ex#L429 **To Reproduce** 1. Create a resource with a prefix on data layer level....
https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_timestamp_.28without_time_zone.29 While all of the Ash built-in primitives work fine on top of timestamp without timezone, we want to push users towards best practices. To this end, we will (at...
Currently, to require that an attribute is not nil, you get an ugly query, but we can abstract that behind a function to make it significantly cleaner.