public interface MySqlResult
extends io.r2dbc.spi.Result
Result for results of a query against a MySQL database.
Note: A query may return multiple MySqlResults.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MySqlResult.Message
Message segment reported as result of the statement processing.
|
static interface |
MySqlResult.OkSegment
Insert result segment consisting of a
last inserted id and
affected rows count, and only appears if the statement is an insert, the table has an
auto-increment identifier column, and the statement is not using the RETURNING clause. |
static interface |
MySqlResult.OutSegment
Out parameters segment consisting of
readable data. |
static interface |
MySqlResult.RowSegment
Row segment consisting of
row data. |
static interface |
MySqlResult.Segment
Marker interface for a MySQL result segment.
|
static interface |
MySqlResult.UpdateCount
Update count segment consisting providing an
affected rows count. |
| Modifier and Type | Method and Description |
|---|---|
MySqlResult |
filter(Predicate<io.r2dbc.spi.Result.Segment> filter) |
<T> Flux<T> |
flatMap(Function<io.r2dbc.spi.Result.Segment,? extends Publisher<? extends T>> mappingFunction) |
Mono<Long> |
getRowsUpdated() |
<T> Flux<T> |
map(BiFunction<io.r2dbc.spi.Row,io.r2dbc.spi.RowMetadata,? extends T> mappingFunction) |
<T> Flux<T> |
map(Function<? super io.r2dbc.spi.Readable,? extends T> mappingFunction) |
Mono<Long> getRowsUpdated()
getRowsUpdated in interface io.r2dbc.spi.ResultMono emitting the number of rows updated, or empty if it is not an update result.IllegalStateException - if the result was consumed<T> Flux<T> map(BiFunction<io.r2dbc.spi.Row,io.r2dbc.spi.RowMetadata,? extends T> mappingFunction)
map in interface io.r2dbc.spi.ResultT - the type of the mapped valuemappingFunction - that maps a Row and RowMetadata to a valueFlux of mapped resultsIllegalArgumentException - if mappingFunction is nullIllegalStateException - if the result was consumed<T> Flux<T> map(Function<? super io.r2dbc.spi.Readable,? extends T> mappingFunction)
map in interface io.r2dbc.spi.ResultT - the type of the mapped valuemappingFunction - that maps a Readable to a valueFlux of mapped resultsIllegalArgumentException - if mappingFunction is nullIllegalStateException - if the result was consumedMySqlReadable,
MySqlRow,
MySqlOutParametersMySqlResult filter(Predicate<io.r2dbc.spi.Result.Segment> filter)
filter in interface io.r2dbc.spi.Resultfilter - to apply to each element to determine if it should be includedMySqlResult that will only emit results that match the predicateIllegalArgumentException - if predicate is nullIllegalStateException - if the result was consumed<T> Flux<T> flatMap(Function<io.r2dbc.spi.Result.Segment,? extends Publisher<? extends T>> mappingFunction)
flatMap in interface io.r2dbc.spi.ResultT - the type of the mapped valuemappingFunction - that maps a Result.Segment a to a PublisherFlux of mapped resultsIllegalArgumentException - if mappingFunction is nullIllegalStateException - if the result was consumedCopyright © 2018–2024 asyncer.io. All rights reserved.