symisc / unqlite

An Embedded NoSQL, Transactional Database Engine
https://unqlite.symisc.net
Other
2.11k stars 164 forks source link

Sync ? #72

Closed arabine closed 6 years ago

arabine commented 6 years ago

Hello,

Can it be possible to add a synchronization mechanism, such as CouchDB? Could be useful when the phone goes offline.

symisc commented 6 years ago

Hi,

We do not plan to add any synchronization mechanism to the engine right now but you can surely implement a minimalist mechanism relatively easily. Just take a look at the files pager.c and vfs_*(win|unix).c to see how transaction & locking are implemented.