typeetfunc / datascript-mori

Package for union datascript and mori
https://www.npmjs.com/package/datascript-mori
Eclipse Public License 1.0
37 stars 6 forks source link

Serialization to file #5

Closed jonasseglare closed 7 years ago

jonasseglare commented 7 years ago

This issue might be off-topic, but I am developing a Node.js application. How can I easiest serialize/deserialize the database to/from a file? This is useful for saving the application state, so that I can restore it later.

Thank you for providing this library.

typeetfunc commented 7 years ago

@jonasseglare I add simple support of datascript.transit in datascript-mori. See tests: https://github.com/typeetfunc/datascript-mori/blob/master/release-js/test/onlyCljsApiUsage.spec.js#L132