medikoo / dbjs

In-Memory Database Engine for JavaScript
MIT License
28 stars 4 forks source link

document snapshot #5

Closed ahdinosaur closed 10 years ago

ahdinosaur commented 10 years ago

would be especially useful in the context of https://github.com/medikoo/dbjs/issues/3.

medikoo commented 10 years ago

You means snapshot of all data/properties in given dbjs realm?

ahdinosaur commented 10 years ago

yeah, that sounds great. i was wondering about getSnapshot, as snapshotting was mentioned in the video linked in the README. does this feature currently exist?

medikoo commented 10 years ago

Yes, this function will return collection of all the events that present state of things in current dbjs realm, and collection would be sorted by modification date.

See also dbjs-log project, although not documented yet (sorry). It provides utilities to save snapshot to a file, to save live log to a file, and then to restore state to any given point in time.