Fork me on GitHub
#rethinkdb
<
2016-05-08
>
escherize11:05:42

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

thedavidmeister12:05:51

i’m struggling a bit with group

thedavidmeister12:05:16

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

escherize12:05:10

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

thedavidmeister12:05:27

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

escherize12:05:55

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

thedavidmeister12:05:43

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

thedavidmeister12:05:57

if a little more verbose

thedavidmeister12:05:03

but i don’t know how to do that either

thedavidmeister12:05:25

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

thedavidmeister12:05:12

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

thedavidmeister14:05:47

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

apa51216:05:45

yes, you can do

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

apa51216:05:10

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