Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Elm to read and write to a SQL database

So I'm having trouble finding an Elm package that I can use to interface directly with a SQL database. I want write a UI in elm and then access a database to communicate with, both read and write. Do you have any suggestions? It seems like it is possible with something like Node but I'm not entirely sure.


1 Answers

Elm is focused primarily at building front-end UI applications, and using it on the back-end in node is currently experimental.

If you want to write a UI application that connects to SQL server, you will most likely have to build a web server application which connects to the SQL database and exposes a JSON API that your Elm app will consume.

like image 131
Chad Gilbert Avatar answered Dec 14 '25 21:12

Chad Gilbert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!