0.1.3 • Published 10 years ago

rns v0.1.3

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

reql-node-shell

Wrapper around RethinkDB JavaScript driver for Node shell

This library load the RethinkDB driver and:

  • overwrite connect to work without argument (default localhost:28015)
  • add repl on a connection
  • overwrite run to behave more friendly in a shell

Note: This library should NOT be used in a node application. This is mostly for debugging.

Note: This library does not block!

Use

> michel@xone:~$ node
> var r = require('rns')
undefined
> r.connect().repl()
undefined
> var result = r.dbList().run()
undefined
> [
  "test"
]

> result
{ _status: 'ready',
  _start: Tue Jan 14 2014 10:31:11 GMT-0800 (PST),
  _end: Tue Jan 14 2014 10:31:11 GMT-0800 (PST),
  _data: [ 'test' ] }
> result.status()
'ready'
> result.time()
0.002
> result.data()
[ 'test' ]
> 
0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago