Method GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?, string?, CancellationToken)

Assembly: redb.Postgres.dll

Returns the inner SELECT compiled by pvt_build_groupby_sql for the
requested grouping. This is the same first-pass SQL that
later wraps with
json_agg(row_to_json(t)); exposed so ToSqlStringAsync and
other diagnostics surfaces can see the actual SQL.

public override Task<string> GetGroupBySqlPreviewAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, string? filterJson, string? havingJson = null, CancellationToken cancellationToken = default)