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

PgUpdate support #14

Closed
vietj opened this issue Sep 13, 2017 · 0 comments
Closed

PgUpdate support #14

vietj opened this issue Sep 13, 2017 · 0 comments

Comments

@vietj
Copy link
Member

vietj commented Sep 13, 2017

Support updates via prepared statements with an API similar to PgQuery:

PgPreparedStatement ps = client.prepare("INSERT INTO USERS (id, name) VALUES ($1, $2));
PgUpdate update = ps.update("julien", "Julien Viet");
update.execute(ar -> {
  // Handle result
});

// Or fluently
ps.update("julien", "Julien Viet").execute(ar -> {
  // Handle result
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant