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>`.
    `Future<T>` | `execute()` Like `execute(Handler)` but returns a `Future` of the asynchronous result
    `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

    - #### execute

          Future<T> execute()

      Like `execute(Handler)` but returns a `Future` of the asynchronous result

    - #### 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 © 2023 Eclipse. All rights reserved.