reqlite
reqlite copied to clipboard
Reqlite - RethinkDB in JavaScript
When using `r.uuid()` as a default in a `thinky` model, the `args` variable is `undefined`. This used to crash, but is fixed in this MR. I hope you can still...
https://github.com/neumino/reqlite/blob/cae3a76d9e52135d0da3cabbcc5374be9dc84ea2/bin/reqlite#L10-L14 Here, `--driver-port` is implemented the same way as `--port-offset`, this seems to be unintentional. The effect of this is that passing `--driver-port 28016` gives you the port `56031`.
We currently never sync to disk. We could, it's not too hard with synchronous methods. If someone want to use asynchronous method, this will require a refactoring to support lazily...
Currently have to coerce to array, otherwise `Group.fromSequence` fails silently. Sample query: ``` r.db(...).table(...).filter({foo: 42}).group('foo') ``` The above never returns, while the following is ok: ``` r.db(...).table(...).filter({foo: 42}).coerceTo('array').group('foo') ```
See: https://www.rethinkdb.com/api/javascript/group
See docs at https://www.rethinkdb.com/api/javascript/insert/
Per https://www.rethinkdb.com/api/javascript/branch/, it should support arbitrary number of conditional expressions, but as implemented it only supports one (although it will happily accept >3 arguments).
Seeing reqlite not behaving the same as rethinkdbdash with a query: # rethinkdbdash ``` javascript r.table('accounts').get('nonsense-here').ne(null).run((error, exists) => { console.log(exists); // false }); ``` # reqlite ``` javascript r.table('accounts').get('nonsense-here').ne(null).run((error, exists)...
Is `r.table('foo').wait()` supported? I don't seem to get a response for this. [RethinkDB docs reference](https://www.rethinkdb.com/api/javascript/wait/). Looks like there was a api change in 2.3.x. Would have to wait for Reqlite...
I didn't know this was actually available. I'll add that later