Libraries v5.0.0
    Preparing search index...

    Variable aggregateConst

    aggregate: {
        avg<S extends OutputSchema<any> | undefined = undefined>(
            column: SelectableColumn,
            options?: AggregateOptions<S>,
        ): AggregateExpression<AggregateResult<S, string | null>>;
        count<S extends OutputSchema<any> | undefined = undefined>(
            column?: SelectableColumn,
            options?: AggregateOptions<S>,
        ): AggregateExpression<AggregateResult<S, number>>;
        countDistinct<S extends OutputSchema<any> | undefined = undefined>(
            column: SelectableColumn,
            options?: AggregateOptions<S>,
        ): AggregateExpression<AggregateResult<S, number>>;
        max<
            C extends SelectableColumn,
            S extends OutputSchema<any> | undefined = undefined,
        >(
            column: C,
            options?: AggregateOptions<S>,
        ): AggregateExpression<AggregateResult<S, ExtremumValue<C>>>;
        min<
            C extends SelectableColumn,
            S extends OutputSchema<any> | undefined = undefined,
        >(
            column: C,
            options?: AggregateOptions<S>,
        ): AggregateExpression<AggregateResult<S, ExtremumValue<C>>>;
        sum<S extends OutputSchema<any> | undefined = undefined>(
            column: SelectableColumn,
            options?: AggregateOptions<S>,
        ): AggregateExpression<AggregateResult<S, string | null>>;
    } = ...

    Typed aggregate expressions for scalar or grouped object projections.

    Type Declaration