Top Description Methods
org.springframework.r2dbc.core

public Interface ExecuteFunction

Annotations
@FunctionalInterface
Imports
java.util.function.BiFunction, io.r2dbc.spi.Result, .Statement, org.reactivestreams.Publisher

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();
 
Author
Mark Paluch
Since
5.3
See Also
Statement#execute()

Method Summary

Modifier and TypeMethod and Description
public Publisher<? extends Result>

Returns:

the delayed result stream
execute
(Statement
the request to execute
statement
)

Execute the given Statement for a stream of Result objects.

Method Detail

executeback to summary
public Publisher<? extends Result> execute(Statement statement)

Execute the given Statement for a stream of Result objects.

Parameters
statement:Statement

the request to execute

Returns:Publisher<? extends Result>

the delayed result stream