Skip to content

R2DBC - DatabaseClient - Add bind method to accept an object #27282

Closed
@kitkars

Description

@kitkars

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 for bind ?

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.

class BindInput {

    private String firstName;
    private String lastName;
    private String email;
    ...
    ...
}

.bind(bindInput); // pass a POJO object

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions