Skip to content

SamLebarbare/querx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Querx

Querx perform scripted rethinkdb queries and export results as json or csv.

Usage

npx querx json ./players.js /tmp/output.json
//players.js
const q = r.db('game').table('players');
const cursor = yield q.run(con, next);
return yield cursor.toArray(next);

Script scope/context

reference
con rethinkdb connection object
r rethinkdb r query object
dir function like console.dir
next callback for async calls

Limitations

  • Your script must return an Array of results
  • Use vanilla rethinkdb driver

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

ISC

About

rethinkdb CLI for exporting data

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published