-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
R2DBC - DatabaseClient - Add bind method to accept an object #27282
Comments
Note that this is available through Unfortunately, this is not totally straightforward to provide with the R2DBC |
I'm introducing a Note that plain field holders are not supported since this is not idiomatic with R2DBC. Record classes or custom classes with constructors and/or bean-style accessors can be very concise and are actually better suited for inline use in a reactive pipeline. |
For completeness, I'm also introducing a |
Hi R2DBC team,
This is a feature request.
Currently with
DatabaseClient
we can execute any arbitrary SQL statement which is cool. Can we add an additional overloaded method forbind
?If I have to pass multiple parameters, instead of passing them one by one using the current
bind
method like.bind("firstName", "somename").bind("lastName", "somename")...
can we make the method to accept an object as well as show below? Just an additional method to simply this.
.bind(bindInput); // pass a POJO object
The text was updated successfully, but these errors were encountered: