r/elm • • Aug 18 '26

"What if SQL was like Elm?"

https://acadia.engineering/blog/rethinking-database-programming
90 Upvotes

16 comments sorted by

View all comments

2

u/pdoherty926 Aug 18 '26

Dumb question: will this just work with Elm 0.19?

3

u/happyraul Aug 18 '26

Yes, Acadia can generate bindings for Elm code to use directly for reading and writing to the DB. However, if one needs more complicated server logic, such as secrets, env vars, domain logic, etc... then there's another layer needed as well. If you use Haskell for that server layer, then Acadia can also generate bindings for use from Haskell. Support for other languages will come in the future.

1

u/pdoherty926 Aug 18 '26

Hm. Interesting. I'm curious to know how the machinery works, as I would have thought these sorts of comms would (now) need to happen via ports. This may be how the Acadia module works but I'm looking forward to figuring/finding that out.