489490491492493494495496497498499
public Table executeAndFetchTable() { LazyTable lt = executeAndFetchTableLazy(); List<Row> rows = new ArrayList<Row>(); try { for (Row item : lt.rows()) { rows.add(item); } } finally { lt.close();
10421043104410451046104710481049105010511052
Query q = sql2o.createQuery("select * from User"); LazyTable lt = null; try { lt = q.executeAndFetchTableLazy(); for (Row r : lt.rows()){ String name = r.getString("name"); assertThat(name, notNullValue()); }