3 ms·
I love RethinkDB and this looks like a great idea for testing. A lite ReQL implementation (just satisfying the API requirements, with little to none performance
by egeozcan 11y ago
I love RethinkDB and this looks like a great idea for testing. A lite ReQL implementation (just satisfying the API requirements, with little to none performance tuning) in something like C, though, would be even better for embedding purposes. You know, the biggest selling point of SQLite isn't that it makes testing easy, but that it's easy to embed.
Single-binary tool with an embedded RethinkDB, syncing with a master instance when it's connected to the internet - one can dream.
- adamfeldman 11y agoCan something like this be done with CouchDB and PouchDB? (CouchDB JS implementation – http://pouchdb.com/ http://pouchdb.com/)
- scoot 11y agoYes, in a few lines of code: const PouchDB = require('pouchdb'); const localDB = new PouchDB('db'); const remoteDB = new PouchDB('http://192.168.1.100:5984/db'); // remote db can be a CouchDB or PouchDB server. localDB.sync(remoteDB); I'm using this with React for a mobile app that works offline, and syncs up when a connection is available.