3 ms·
There was a post a couple weeks ago about an nginx module atop PosgreSQL providing a REST interface[1]. This is a similar idea but for Datomic and using a REST
by sehrope 13y ago
There was a post a couple weeks ago about an nginx module atop PosgreSQL providing a REST interface[1]. This is a similar idea but for Datomic and using a REST server that comes bundled with it. Compared to the PG ngnix module, this one has proper handling of bind variables built into the REST api. With a loose CORS policy (the "-o '*') this can be used directly in a user's browser via AJAX requests.
There's obviously a lot of security issues to think about here, the primary one is that without authentication anybody that is network accessible to the server can execute anything. As such, I don't see much production use in exposing something like this though it does look like it could be fun to use.
Funny thing for me was when I first saw the headline I thought it was web browser database client for Datomic, which is what our company does[2] (though for other databases; we don't support Datomic yet). It'd be possible to build something similar atop this API and have it run entirely client side though it'd have the same security issues mentioned above (vs our setup where DB access is done authenticated and done server to server).
[1]: https://news.ycombinator.com/item?id=6109069 https://news.ycombinator.com/item?id=6109069
[2]: http://www.jackdb.com/ http://www.jackdb.com/