code: public static <A> A withQueryResult(QueryResult res,
                                          Function<java.sql.Connection, A> f) {
  
          return f.apply(connection(handleQuery((x, y) -> res)));
      }
docs: Executes |f| using a connection accepting only queries,
  and answering with |result| to any query.
  
  <pre>
  {@code
  import static acolyte.jdbc.AcolyteDSL.withQueryResult;
  
  String str = withQueryResult(queryRes, con -> "str");
  }
  </pre>