automerge / hypermerge

Build p2p collaborative applications without any server infrastructure in Node.js
MIT License
1.28k stars 66 forks source link

ClockStore and SqlDatabase #34

Closed mjtognetti closed 4 years ago

mjtognetti commented 4 years ago

Adds a sqlite-backed SqlDatabase which we use to persist clocks via a ClockStore. We must send clocks to peers when they request a document. We persist them in this PR so we can avoid instantiating documents (and opening all of the feeds participating in those documents) when we replicate documents to peers.