rethinkdb 2016-05-08

r.db("clojurians").table("rethinkdb").changes()

i’m struggling a bit with group

but can’t figure out how to group with multiple indexes

what's a reql query that demonstrates that you want to emulate?

r.table(‘foo’).group(‘a’, ‘b’)

looks like @apa512 did a small fix for group lately (last commit). I'm not sure what happened there though.

@apa512 has joined the channel

r.table(‘a’).group(function(b) { return b.pluck(‘c’, ‘d’) }) would also be ok

if a little more verbose

but i don’t know how to do that either

both pluck and group only seem to take one argument...

i possibly worked around this by creating a compound index...

@apa512: is it possible to ssh into rethink hosted on compose using the clojure library?

yes, you can do

(r/connect :ca-cert "your_cert.pem")

at least when creating the keys as prescribed in https://rethinkdb.com/docs/security/ i'm not sure if there's something special about compose