select<T extends Record> method

QuerySingle<T> select<T extends Record>(
  1. T projectionBuilder(
    1. Expr<A> a,
    2. Expr<B> b,
    3. Expr<C> c,
    4. Expr<D> d,
    5. Expr<E> e,
    6. Expr<F> f,
    7. Expr<G> g,
    )
)

Create a projection of this QuerySingle using SELECT clause.

The projectionBuilder must return a Record where all the values are Expr objects. If something else is returned you will get a QuerySingle object which doesn't have any methods!

All methods and properties on QuerySingle<T> are extension methods and they are only defined for records T where all the values are Expr objects.

Implementation

QuerySingle<T> select<T extends Record>(
        T Function(Expr<A> a, Expr<B> b, Expr<C> c, Expr<D> d, Expr<E> e,
                Expr<F> f, Expr<G> g)
            projectionBuilder) =>
    QuerySingle._(asQuery.select(projectionBuilder));