QuerySingle2<A, B> extension

Extensions for a query returning at-most one row with 2 expressions.

on

Properties

asQuery Query<(Expr<A>, Expr<B>)>

Available on QuerySingle<(Expr<A>, Expr<B>)>, provided by the QuerySingle2 extension

Get Query with the same rows as this QuerySingle.
no setter

Methods

fetch() Future<(A, B)?>

Available on QuerySingle<(Expr<A>, Expr<B>)>, provided by the QuerySingle2 extension

Query the database for the row matching this QuerySingle, if any.
fetchOrNulls() Future<(A?, B?)>

Available on QuerySingle<(Expr<A>, Expr<B>)>, provided by the QuerySingle2 extension

Query the database for the row matching this QuerySingle, if any.
select<T extends Record>(T projectionBuilder(Expr<A> a, Expr<B> b)) QuerySingle<T>

Available on QuerySingle<(Expr<A>, Expr<B>)>, provided by the QuerySingle2 extension

Create a projection of this QuerySingle using SELECT clause.
where(Expr<bool> conditionBuilder(Expr<A> a, Expr<B> b)) QuerySingle<(Expr<A>, Expr<B>)>

Available on QuerySingle<(Expr<A>, Expr<B>)>, provided by the QuerySingle2 extension

Filter QuerySingle using WHERE clause.