@Override
    public void query(IAsyncResultHandler<IJdbcResultSet> handler, String sql, Object... params) {
        connection.queryWithParams(sql, toJsonArray(params), result -> {
            if (result.succeeded()) {
                VertxJdbcResultSet jdbcResultSet = new VertxJdbcResultSet(result.result());
                handler.handle(AsyncResultImpl.create(jdbcResultSet));
            } else {
                handler.handle(AsyncResultImpl.create(result.cause()));
            }
        });
    }
@see io.apiman.gateway.engine.components.jdbc.IJdbcConnection#query(io.apiman.gateway.engine.async.IAsyncResultHandler, java.lang.String, java.lang.Object[])
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/components/jdbc/VertxJdbcConnection.java