Package org.springframework.r2dbc.core
Interface ExecuteFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a function that executes a
Statement
for a (delayed)
Result
stream.
Note that discarded Result
objects must be consumed according
to the R2DBC spec via either Result.getRowsUpdated()
or
Result.map(BiFunction)
.
Typically, implementations invoke the Statement.execute()
method
to initiate execution of the statement object.
For example:
DatabaseClient.builder() .executeFunction(statement -> statement.execute()) .build();
- Since:
- 5.3
- Author:
- Mark Paluch
- See Also:
-
Method Summary
-
Method Details
-
execute
- Parameters:
statement
- the request to execute- Returns:
- the delayed result stream
-