You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
Hi,
Is there a easy way to save/load a datascript DB to file?
I'm not looking to use datomic. I just need a way to save my datascript db to file and to read it later.
Thanks!
Christopher Small
unread,
Sep 27, 2016, 3:07:51 AM9/27/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
This should be pretty easy. You can use `datascript.core/datoms` to produce a sequence of datoms which you serialize as EDN, CSV or (gasp) JSON. For reading back in, you can use `datascript.core/conn-from-datoms`.
Chris
Nikita Prokopov
unread,
Sep 27, 2016, 9:05:37 AM9/27/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message