Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make POJOs for RethinkDB-specific objects. #18

Open
3 of 25 tasks
NotJustAnna opened this issue Feb 15, 2020 · 1 comment
Open
3 of 25 tasks

Make POJOs for RethinkDB-specific objects. #18

NotJustAnna opened this issue Feb 15, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@NotJustAnna
Copy link
Member

NotJustAnna commented Feb 15, 2020

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 NotJustAnna added the enhancement New feature or request label Feb 15, 2020
@NotJustAnna NotJustAnna changed the title Make POJOs for RethinkDB-specific responses. Make POJOs for RethinkDB-specific objects. Feb 17, 2020
@NotJustAnna NotJustAnna added this to the v2.4.3 milestone Mar 24, 2020
@NotJustAnna NotJustAnna modified the milestones: v2.4.3, v2.4.4 Apr 28, 2020
@martinpaljak
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants