mudspot
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Kia ora,
We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
Hello,
I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All Posts (oldest first)
- Show All Posts (newest first)
zachdaniel
Right now AFAIK Phoenix.Sync essentially maps an Ecto query to a shape, and those Ecto queries are quite limited at the moment, so there isn’t a way to take an arbitrary ash query and turn it into a shape etc.
What kind of integration are you looking for?
mudspot
I have lambda functions that compute on the db and modifies the tables accordingly.
On the app side, of course its a LV → business logic → Ash → DB stack. So trying to cook up a design that lets the LV update when the data tables have been changed (by the lambda functions)
zachdaniel
Yeah it’s an interesting question
You could definitely set something up with
I’ve had some chats with them about making something that works directly w/ Ash but nothing has materialized as of yet.
Phoenix.Synctreating your Ash resources as Ecto schemas. How you actually hook that up to do useful things is kind of its own questionsezaru
Sorry for revive this post, but I though it would be better than create a new one..
Do we have some news regarding Phoenix.Sync integration with Ash? I was looking at the presentation of the tech from James Arthur here https://www.youtube.com/watch?v=4IWShnVuRCg and I would love to be able to use it in my backend.
More specifically, the part that I was more interested was the integration with LiveView via
sync_stream, but instead of using Ecto schemas/queries, I would love to be able to use Ash queries from resource actions.Is there some plan or conversation about adding some support for it?
PS. I did find kinda ironic and funny that James was using an Ash t shirt during the presentation but at the same time the library didn’t have any support for Ash haha
zachdaniel
I’ve explored it, and have a POC, but there are some challenges. One of the main ones is the lack of multi-table shapes. however, we have added a utility that would allow you to roll your own here.
with returns something like
{:ok, %{query: ecto_query}}. You could then use thatecto_querywith Phoenix.Sync, in the case that it is compatible. That Ecto query will include policies, filters, calculations etc.sezaru
I don’t know if that changed, but, last time that I tried data_layer_query, it would generate a wrong query if the resource uses a custom schema, is that still the case?
zachdaniel
they are different, you’re thinking of Ash.Query.data_layer_query, this is new, it’s Ash.data_layer_query and it should be exactly the query the data layer will run.
sezaru
Ah, sorry, I didn’t realize that. I will try that out thanks!
mudspot
Ash T-shirt? Where can I lay my hands on one?!
zachdaniel
There will be a method to acquire Ash tshirts soon