rethinkdb-java icon indicating copy to clipboard operation
rethinkdb-java copied to clipboard

Make POJOs for RethinkDB-specific objects.

Open NotJustAnna opened this issue 5 years ago • 1 comments

Currently, the query r.table("test").insert(r.hashMap("foo", "bar").run(conn) returns a Map.

But this is the Java driver and we'd have a better interface if we had a POJO, provided by the driver, to unserialize to. This would make the query just barely slightly bigger:

r.table("test").insert(r.hashMap("foo", "bar").run(conn, TableOperation.class)

But this would give automatic completion for all the documented values.

List of known objects:

(Note: these aren't official nor final names)

NotJustAnna avatar Feb 15 '20 22:02 NotJustAnna

Would love to see this! Especially handling of "errors"

martinpaljak avatar Jun 02 '20 15:06 martinpaljak