Class ResultQueries
- java.lang.Object
-
- com.github.mizool.technology.sql.jooq.ResultQueries
-
public final class ResultQueries extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R extends org.jooq.TableRecord<R>>
Stream<R>list(org.jooq.ResultQuery<R> resultQuery, org.jooq.Table<R> table)static <R extends org.jooq.TableRecord<R>>
Optional<R>read(org.jooq.ResultQuery<R> resultQuery, org.jooq.Table<R> table)
-
-
-
Method Detail
-
read
public static <R extends org.jooq.TableRecord<R>> Optional<R> read(org.jooq.ResultQuery<R> resultQuery, org.jooq.Table<R> table)
-
list
public static <R extends org.jooq.TableRecord<R>> Stream<R> list(org.jooq.ResultQuery<R> resultQuery, org.jooq.Table<R> table)
- Returns:
- A live
Streamof the result data. The underlying connection is still open. You have to make sure theStreamis properly closed, either by always consuming it fully (risky due to exceptions) or preferrably by consuming it inside a try-with-resources block.
-
-