Top Description Methods
io.r2dbc.spi

public Interface Batch

Imports
org.reactivestreams.Publisher

A collection of statements that are executed in a batch for performance reasons.

Method Summary

Modifier and TypeMethod and Description
public Batch

Returns:

this Batch
add
(String
the statement to add
sql
)

Add a statement to this batch.

public Publisher<? extends Result>

Returns:

the Results, returned by each statement
execute
()

Executes one or more SQL statements and returns the Results.

Method Detail

addback to summary
public Batch add(String sql)

Add a statement to this batch.

Parameters
sql:String

the statement to add

Returns:Batch

this Batch

Exceptions
IllegalArgumentException:
if sql is null
executeback to summary
public Publisher<? extends Result> execute()

Executes one or more SQL statements and returns the Results.

Returns:Publisher<? extends Result>

the Results, returned by each statement