io.vertx.sqlclient

## Interface Query<T>

- All Known Subinterfaces:
    PreparedQuery<T>

      public interface Query<T>

  A query.
  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<R> Query<SqlResult<R>>` | `collecting(java.util.stream.Collector<Row,?,R> collector)` Use the specified `collector` for collecting the query result to `<R>`.
    `void` | `execute(Handler<AsyncResult<T>> handler)` Execute the query.
    `<U> Query<RowSet<U>>` | `mapping(java.util.function.Function<Row,U> mapper)` Use the specified `mapper` for mapping `Row` to `<U>`.

- - ### Method Detail

    - #### execute

          void execute(Handler<AsyncResult<T>> handler)

      Execute the query.
      Parameters:
        `handler` - the handler receiving the response

    - #### collecting

          <R> Query<SqlResult<R>> collecting(java.util.stream.Collector<Row,?,R> collector)

      Use the specified `collector` for collecting the query result to `<R>`.

    - #### mapping

          <U> Query<RowSet<U>> mapping(java.util.function.Function<Row,U> mapper)

      Use the specified `mapper` for mapping `Row` to `<U>`.

Copyright © 2021 Eclipse. All rights reserved.