asQuery property

Query<(Expr<A>)> get asQuery

Get Query with the same rows as this QuerySingle.

This returns a Query with at-most one row.

Note

This is method is only useful for converting a QuerySingle into a Query representation, which can be necessary if you wish to pass a QuerySingle into a function that only accepts Query.

Implementation

Query<(Expr<A>,)> get asQuery => _query;