Fork me on GitHub
#datomic
<
2024-03-16
>
xlfe11:03:43

I'm playing around with a datomic storage proxy: a SQL JDBC Driver that is supplied to datomic transactor/peer under :sql-driver-class in a connection map. At the moment I have it working with a Datalevin backend and a Google Cloud Datastore backend. I'm pretty sure this is a bad idea, but it was interesting to see it working non-the-less ⚠️ https://github.com/xlfe/datomic-storage-proxy - this also fulfils a dream I've had since 2017 - to run Datomic on GCP with GCP Datastore laughcry "it just needs a KV backend am I right?"

👍 3
favila13:03:09

I’ve dreamed of doing this very thing for years! This is amazing, thank you.

❤️ 1
favila13:03:34

I have another idea for one: a read only backend whose data source is a datomic backup folder

1
tatut06:03:16

neat idea, so you are directly mapping the SQL issued by Datomic to a prepared statement that executes some action (looking at statement- multimethod)

👍 1
xlfe06:03:37

That's it. I'm not sure if I've covered every potential SQL datomic might issue yet though. I think there's some edge cases I don't have yet (see the commented SQL at the bottom of that same file)