rethinkdb

2016-05-08T11:33:34.000012Z

howdy

escherize 2016-05-08T11:59:10.000013Z

Hi

escherize 2016-05-08T11:59:42.000015Z

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

2016-05-08T12:01:51.000016Z

i’m struggling a bit with group

2016-05-08T12:02:05.000017Z

using https://github.com/apa512/clj-rethinkdb

2016-05-08T12:02:16.000019Z

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

escherize 2016-05-08T12:07:10.000020Z

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

2016-05-08T12:08:27.000021Z

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

escherize 2016-05-08T12:09:55.000022Z

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

2016-05-08T12:10:43.000025Z

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

2016-05-08T12:10:57.000026Z

if a little more verbose

2016-05-08T12:11:03.000027Z

but i don’t know how to do that either

2016-05-08T12:11:25.000028Z

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

2016-05-08T12:35:12.000029Z

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

2016-05-08T14:55:47.000030Z

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

apa512 2016-05-08T16:53:45.000031Z

yes, you can do

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

apa512 2016-05-08T16:55:10.000033Z

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