Howdy, Is it possible do use datalog databases as the persistence layer with cljsrn? e.g xtdb, datomic etc
Thanks for the heads up, looks I'd be better off going with something more run of the mill for the db.
If possible, I was hoping to use it as an external db.
Small heads up based on my experience a couple of years ago. Initialising a datascript db involves indexing which was quite resource intensive for my cljsrn app. Impacted UX. Depends on what data you need to load of course. I had a lot of reference data.
Do you mean locally? If so, I think your best option is Datascript, although I think you’ll have to write your own code to save its state to disk on changes.
Logseq saves a Datascript db in an IndexedDB database; not sure what provides that in their CapacitorJS-based mobile app, or if it's available to RN, though.
Interesting. A persisting datascript would be sweet. I can imagine serlising to IndexedDB but can't intuitively see how you can run datascript queries against it. I think IndexDB only handles simple types so the comparison stuff is limited (serialisable?). The async API is a challenge too. (old memories, could be wrong).
From the little code I've read it seemed like the data is mostly kept in RAM, and only periodically persisted in IndexedDB. Could be wrong.