I've been tinkering with working on a Clojure driver that would wrap the existing official Java driver (I'm already aware of https://github.com/apa512/clj-rethinkdb). I'm far enough along that I have a functioning prototype, but all queries currently respond with core Java types (e.g. an instance of java.util.ArrayList, etc.).
In my mind, it would be great if the com.rethinkdb.net.Connection class offered me a way to handle the query response myself so that I could directly cast the response into the appropriate Clojure data structure (whether that ended up being an instance of clojure.lang.PersistentVector or something more like a core.async channel, as appropriate).
I think the simplest way to go about this would probably just be to make sendQuery public, but if we wanted to we could also keep it private and open up a different public method interface to support this use case.
Anyways, figured I'd open an issue up for discussion 😄
I've been tinkering with working on a Clojure driver that would wrap the existing official Java driver (I'm already aware of https://github.com/apa512/clj-rethinkdb). I'm far enough along that I have a functioning prototype, but all queries currently respond with core Java types (e.g. an instance of
java.util.ArrayList, etc.).In my mind, it would be great if the
com.rethinkdb.net.Connectionclass offered me a way to handle the query response myself so that I could directly cast the response into the appropriate Clojure data structure (whether that ended up being an instance ofclojure.lang.PersistentVectoror something more like acore.asyncchannel, as appropriate).I think the simplest way to go about this would probably just be to make
sendQuerypublic, but if we wanted to we could also keep it private and open up a different public method interface to support this use case.Anyways, figured I'd open an issue up for discussion 😄