code: public static void dump(DataSource dataSource, PrintStream out) {
      try (Log log = Log.create(out)) {
        log.write(CallInfo.create(), executeQuery(dataSource));
      }
    }
docs: Dump the database contents for a data source.
  
  @param dataSource Data source.
  @param out Output stream.