riak-repl

Riak + JavaScript REPL

Riak REPL

$ npm install -g riak-repl
$ riak-repl localhost:8087 users
 
localhost:8087 (users) > create({email: 'pedro.teixeira@gmail.com'});
{"email":"pedro.teixeira@gmail.com","_meta":{"content_type":"application/json","vtag":"AY0sKVi92ArPwulWPqhRZ","vclock":"a85hYGBgzGDKBVIcypz/fgau2LUmgymRMY+VwXmW8mm+LAA="},"_id":"KoymZQKVsp2SaQtAGwe9XEiKeWT"}
 
localhost:8087 (users) > get("KoymZQKVsp2SaQtAGwe9XEiKeWT")
{"email":"pedro.teixeira@gmail.com","_meta":{"content_type":"application/json","vtag":"AY0sKVi92ArPwulWPqhRZ","vclock":"a85hYGBgzGDKBVIcypz/fgau2LUmgymRMY+VwXmW8mm+LAA="},"_id":"KoymZQKVsp2SaQtAGwe9XEiKeWT"}
 
localhost:8087 (users) > getAll()
{"email":"pedro.teixeira@gmail.com","_meta":{"content_type":"application/json","vtag":"5mEdqp0qYQq899WWPfNN20","vclock":"a85hYGBgzGDKBVIcypz/fgau2LU2gymRMY+VgX2W8mm+LAA="},"_id":"52i8SRNh82H5DFovlkE2hwXYjai"}
 
{"email":"pedro.teixeira@gmail.com","_meta":{"content_type":"application/json","vtag":"40xrxqZ0nSCS4l9afCfMDn","vclock":"a85hYGBgzGDKBVIcypz/fgau2LU2gymRMY+VwXyW8mm+LAA="},"_id":"WmnGCoGJScBo7jKPTm9T1Vafwo4"}
 
{"a":1,"_meta":{"content_type":"application/json","vtag":"7HHq4ID4y5aXWTB1XMEIbo","vclock":"a85hYGBgzGDKBVIcypz/fgau2LU2gymRMY+VwX6m8mm+LAA="},"_id":"UPjJqTkbcdA79EaPfkKUdh9LcCM"}
 
{"email":"pedro.teixeira@gmail.com","_meta":{"content_type":"application/json","vtag":"AY0sKVi92ArPwulWPqhRZ","vclock":"a85hYGBgzGDKBVIcypz/fgau2LUmgymRMY+VwXmW8mm+LAA="},"_id":"KoymZQKVsp2SaQtAGwe9XEiKeWT"}
 
localhost:8087 (users) >