Querx perform scripted rethinkdb queries and export results as json or csv.
npx querx json ./players.js /tmp/output.json//players.jsconstq=r.db('game').table('players');constcursor=yieldq.run(con,next);returnyieldcursor.toArray(next);| reference | |
|---|---|
| con | rethinkdb connection object |
| r | rethinkdb r query object |
| dir | function like console.dir |
| next | callback for async calls |
- Your script must return an Array of results
- Use vanilla rethinkdb driver
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.