Class QueryProviderBase

Assembly: redb.Core.dll

Base query provider for executing LINQ queries via search_objects_with_facets.
Database-specific implementations should inherit and provide ISqlDialect.

public abstract class QueryProviderBase : IRedbQueryProvider

Inheritance

Object→QueryProviderBase

Implements

Derived

Properties

CompilesNotTrue

The provider compiles over a filter on Props fields. AllAsync then asks

protected virtual bool CompilesNotTrue { get; }

SortsByPropsLikeLinq

An ordering by Props fields keeps the objects without a value for the key and places them as LINQ does (null

protected virtual bool SortsByPropsLikeLinq { get; }

Methods

BuildPvtInnerSqlAsync<TProps>(QueryContext<TProps>, bool, CancellationToken)

Phase 1: ask the database to build the inner _id-list SQL string.

protected Task<string> BuildPvtInnerSqlAsync<TProps>(QueryContext<TProps> context, bool ignoreLimitOffset, CancellationToken cancellationToken = default) where TProps : class, new()

CanUsePvtPipeline<TProps>(QueryContext<TProps>)

Returns true when the active dialect exposes the v2-pvt module.

protected virtual bool CanUsePvtPipeline<TProps>(QueryContext<TProps> context) where TProps : class, new()

CanUsePvtProjection<TProps>(QueryContext<TProps>)

Returns true when the active dialect exposes native PVT projection

protected virtual bool CanUsePvtProjection<TProps>(QueryContext<TProps> context) where TProps : class, new()

CheckProOnlyDistinctFeatures<TProps>(QueryContext<TProps>)

Hook for Distinct-related feature checks. No-op in OSS — DistinctRedb /

protected virtual void CheckProOnlyDistinctFeatures<TProps>(QueryContext<TProps> context) where TProps : class, new()

CreateFacetBuilder()

Creates facet filter builder.

protected virtual IFacetFilterBuilder CreateFacetBuilder()

CreateFilterParser()

Creates filter expression parser. Override for Pro features.

protected virtual IFilterExpressionParser CreateFilterParser()

CreateOrderingParser()

Creates ordering expression parser.

protected virtual IOrderingExpressionParser CreateOrderingParser()

CreateQuery<TProps>(long, long?, bool)

Create new query for specified scheme.

public IRedbQueryable<TProps> CreateQuery<TProps>(long schemeId, long? userId = null, bool checkPermissions = false) where TProps : class, new()

ExecuteAggregateAsync(long, string, AggregateFunction, FilterExpression?, CancellationToken)

Execute single-field aggregation with FilterExpression (Pro version).

public virtual Task<decimal?> ExecuteAggregateAsync(long schemeId, string fieldPath, AggregateFunction function, FilterExpression? filter, CancellationToken cancellationToken = default)

ExecuteAggregateAsync(long, string, AggregateFunction, FilterExpression?)

Execute single-field aggregation with FilterExpression (Pro version).

public virtual Task<decimal?> ExecuteAggregateAsync(long schemeId, string fieldPath, AggregateFunction function, FilterExpression? filter)

ExecuteAggregateAsync(long, string, AggregateFunction, string?, CancellationToken)

Perform aggregation on EAV field (SQL strategy)

public virtual Task<decimal?> ExecuteAggregateAsync(long schemeId, string fieldPath, AggregateFunction function, string? filterJson = null, CancellationToken cancellationToken = default)

ExecuteAggregateAsync(long, string, AggregateFunction, string?)

Perform aggregation on EAV field (SQL strategy)

public virtual Task<decimal?> ExecuteAggregateAsync(long schemeId, string fieldPath, AggregateFunction function, string? filterJson = null)

ExecuteAggregateBatchAsync(long, IEnumerable<AggregateRequest>, FilterExpression?, CancellationToken)

Execute batch aggregation with FilterExpression (Pro version).

public virtual Task<AggregateResult> ExecuteAggregateBatchAsync(long schemeId, IEnumerable<AggregateRequest> requests, FilterExpression? filter, CancellationToken cancellationToken = default)

ExecuteAggregateBatchAsync(long, IEnumerable<AggregateRequest>, FilterExpression?)

Execute batch aggregation with FilterExpression (Pro version).

public virtual Task<AggregateResult> ExecuteAggregateBatchAsync(long schemeId, IEnumerable<AggregateRequest> requests, FilterExpression? filter)

ExecuteAggregateBatchAsync(long, IEnumerable<AggregateRequest>, string?, CancellationToken)

Perform batch aggregation — ONE SQL query for all aggregations!

public virtual Task<AggregateResult> ExecuteAggregateBatchAsync(long schemeId, IEnumerable<AggregateRequest> requests, string? filterJson = null, CancellationToken cancellationToken = default)

ExecuteAggregateBatchAsync(long, IEnumerable<AggregateRequest>, string?)

Perform batch aggregation — ONE SQL query for all aggregations!

public virtual Task<AggregateResult> ExecuteAggregateBatchAsync(long schemeId, IEnumerable<AggregateRequest> requests, string? filterJson = null)

ExecuteAnyAsync<TProps>(QueryContext<TProps>, CancellationToken)

Is there at least one object the query returns. The default is the count compared with

protected virtual Task<bool> ExecuteAnyAsync<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

ExecuteArrayGroupedAggregateAsync(long, string, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?)

Performs GroupBy aggregation on an array via the aggregate_array_grouped SQL function

public virtual Task<JsonDocument?> ExecuteArrayGroupedAggregateAsync(long schemeId, string arrayPath, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, string? filterJson = null)

ExecuteArrayGroupQueryAsync(ArrayGroupQuery, CancellationToken)

Grouping over the elements of an array. Every provider that supports GroupByArray overrides it; a provider

public virtual Task<JsonDocument> ExecuteArrayGroupQueryAsync(ArrayGroupQuery query, CancellationToken cancellationToken = default)

ExecuteAsync(Expression, Type, CancellationToken)

Execute query asynchronously.

public Task<object> ExecuteAsync(Expression expression, Type elementType, CancellationToken cancellationToken = default)

ExecuteAsync(Expression, Type)

Execute query asynchronously.

public Task<object> ExecuteAsync(Expression expression, Type elementType)

ExecuteCountAsync<TProps>(QueryContext<TProps>, CancellationToken)

Executes COUNT query. Override in Pro for PVT-based count with computed expressions.

protected virtual Task<int> ExecuteCountAsync<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

ExecuteCountAsync<TProps>(QueryContext<TProps>)

Executes COUNT query. Override in Pro for PVT-based count with computed expressions.

protected virtual Task<int> ExecuteCountAsync<TProps>(QueryContext<TProps> context) where TProps : class, new()

ExecuteCountAsyncPvt<TProps>(QueryContext<TProps>, CancellationToken)

v2-pvt Count path: COUNT(*) wrapper over the inner _id-list SQL.

protected virtual Task<int> ExecuteCountAsyncPvt<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

ExecuteDeleteAsync(long, FilterExpression?, CancellationToken)

Delete objects by FilterExpression (Pro version uses PVT, OpenSource falls back to facet JSON).

public virtual Task<int> ExecuteDeleteAsync(long schemeId, FilterExpression? filter, CancellationToken cancellationToken = default)

ExecuteDeleteAsync(long, FilterExpression?)

Delete objects by FilterExpression (Pro version uses PVT, OpenSource falls back to facet JSON).

public virtual Task<int> ExecuteDeleteAsync(long schemeId, FilterExpression? filter)

ExecuteDeleteAsync(long, string?, CancellationToken)

Delete objects by filter.

public virtual Task<int> ExecuteDeleteAsync(long schemeId, string? filterJson = null, CancellationToken cancellationToken = default)

ExecuteDeleteAsync(long, string?)

Delete objects by filter.

public virtual Task<int> ExecuteDeleteAsync(long schemeId, string? filterJson = null)

ExecuteGroupedAggregateAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, FilterExpression?, string?, CancellationToken)

Performs GroupBy aggregation with FilterExpression (Pro version).

public virtual Task<JsonDocument?> ExecuteGroupedAggregateAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, FilterExpression? filter, string? havingJson = null, CancellationToken cancellationToken = default)

ExecuteGroupedAggregateAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, FilterExpression?)

Performs GroupBy aggregation with FilterExpression (Pro version).

public virtual Task<JsonDocument?> ExecuteGroupedAggregateAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, FilterExpression? filter)

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

Performs GroupBy aggregation via the aggregate_grouped SQL function

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

ExecuteGroupedAggregateAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?)

Performs GroupBy aggregation via the aggregate_grouped SQL function

public virtual Task<JsonDocument?> ExecuteGroupedAggregateAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, string? filterJson = null)

ExecuteGroupedWindowQueryAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?, string?, CancellationToken)

Execute GroupBy with Window Functions with FilterExpression.

public virtual Task<JsonDocument?> ExecuteGroupedWindowQueryAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter, string? havingJson = null, CancellationToken cancellationToken = default)

ExecuteGroupedWindowQueryAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?)

Execute GroupBy with Window Functions with FilterExpression (Pro version).

public virtual Task<JsonDocument?> ExecuteGroupedWindowQueryAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter)

ExecuteGroupedWindowQueryAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?, string?, CancellationToken)

Execute GroupBy with Window Functions. A provider that supports it overrides this; one that does not refuses

public virtual Task<JsonDocument?> ExecuteGroupedWindowQueryAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null, string? havingJson = null, CancellationToken cancellationToken = default)

ExecuteGroupedWindowQueryAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?)

Execute GroupBy with Window Functions.

public virtual Task<JsonDocument?> ExecuteGroupedWindowQueryAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null)

ExecuteToListAsync<TProps>(QueryContext<TProps>, Type, CancellationToken)

protected virtual Task<object> ExecuteToListAsync<TProps>(QueryContext<TProps> context, Type propsType, CancellationToken cancellationToken = default) where TProps : class, new()

ExecuteToListAsync<TProps>(QueryContext<TProps>, Type)

protected virtual Task<object> ExecuteToListAsync<TProps>(QueryContext<TProps> context, Type propsType) where TProps : class, new()

ExecuteToListAsyncPvt<TProps>(QueryContext<TProps>, Type, CancellationToken)

v2-pvt ToList path: wraps the inner SQL with get_object_json, executes,

protected virtual Task<object> ExecuteToListAsyncPvt<TProps>(QueryContext<TProps> context, Type propsType, CancellationToken cancellationToken = default) where TProps : class, new()

ExecuteToListAsyncPvtProjection<TProps>(QueryContext<TProps>, CancellationToken)

v2-pvt native projection path. Builds a projection JSON from

protected virtual Task<object> ExecuteToListAsyncPvtProjection<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

ExecuteWindowQueryAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?, string?, int?, int?, CancellationToken)

Execute window query with FilterExpression (Pro version).

public virtual Task<JsonDocument?> ExecuteWindowQueryAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter, string? frameJson = null, int? take = null, int? skip = null, CancellationToken cancellationToken = default)

ExecuteWindowQueryAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?, string?, int?, int?)

Execute window query with FilterExpression (Pro version).

public virtual Task<JsonDocument?> ExecuteWindowQueryAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter, string? frameJson = null, int? take = null, int? skip = null)

ExecuteWindowQueryAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?, string?, int?, int?, CancellationToken)

Execute query with window functions (SQL function query_with_window).

public virtual Task<JsonDocument?> ExecuteWindowQueryAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null, string? frameJson = null, int? take = null, int? skip = null, CancellationToken cancellationToken = default)

ExecuteWindowQueryAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?, string?, int?, int?)

Execute query with window functions (SQL function query_with_window).

public virtual Task<JsonDocument?> ExecuteWindowQueryAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null, string? frameJson = null, int? take = null, int? skip = null)

GetAggregateSqlPreviewAsync<TProps, TResult>(QueryContext<TProps>, Expression<Func<RedbObject<TProps>, TResult>>, CancellationToken)

Returns SQL query for aggregation (for debugging)

public virtual Task<string> GetAggregateSqlPreviewAsync<TProps, TResult>(QueryContext<TProps> context, Expression<Func<RedbObject<TProps>, TResult>> selector, CancellationToken cancellationToken = default) where TProps : class, new()

GetAggregateSqlPreviewAsync<TProps, TResult>(QueryContext<TProps>, Expression<Func<RedbObject<TProps>, TResult>>)

🔍 Returns SQL query for aggregation (for debugging)

public virtual Task<string> GetAggregateSqlPreviewAsync<TProps, TResult>(QueryContext<TProps> context, Expression<Func<RedbObject<TProps>, TResult>> selector) where TProps : class, new()

GetArrayGroupQuerySqlAsync(ArrayGroupQuery, CancellationToken)

SQL of ; see there.

public virtual Task<string> GetArrayGroupQuerySqlAsync(ArrayGroupQuery query, CancellationToken cancellationToken = default)

GetFilterJsonAsync<TProps>(QueryContext<TProps>, CancellationToken)

Returns the JSON filter that will be sent to SQL function (for diagnostics)

public virtual Task<string> GetFilterJsonAsync<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

GetFilterJsonAsync<TProps>(QueryContext<TProps>)

Returns the JSON filter that will be sent to SQL function (for diagnostics)

public virtual Task<string> GetFilterJsonAsync<TProps>(QueryContext<TProps> context) where TProps : class, new()

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

SQL preview of a GroupBy with FilterExpression. Free fallback: converts FilterExpression to facet-JSON.

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

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

SQL preview of a GroupBy. A provider that supports it overrides this; one that does not refuses with its own name.

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

GetGroupedWindowSqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?, string?, CancellationToken)

SQL preview for GroupBy + Window query with FilterExpression.

public virtual Task<string> GetGroupedWindowSqlPreviewAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter, string? havingJson = null, CancellationToken cancellationToken = default)

GetGroupedWindowSqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?)

SQL preview for GroupBy + Window query with FilterExpression (Pro version).

public virtual Task<string> GetGroupedWindowSqlPreviewAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter)

GetGroupedWindowSqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?, string?, CancellationToken)

SQL preview for GroupBy + Window query. A provider that supports it overrides this; one that does not refuses

public virtual Task<string> GetGroupedWindowSqlPreviewAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null, string? havingJson = null, CancellationToken cancellationToken = default)

GetGroupedWindowSqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?)

SQL preview for GroupBy + Window query.

public virtual Task<string> GetGroupedWindowSqlPreviewAsync(long schemeId, IEnumerable<GroupFieldRequest> groupFields, IEnumerable<AggregateRequest> aggregations, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null)

GetSchemeAsync(long, CancellationToken)

Get scheme by ID (for projections)

public Task<IRedbScheme?> GetSchemeAsync(long schemeId, CancellationToken cancellationToken = default)

GetSchemeAsync(long)

⭐ Get scheme by ID (for projections)

public Task<IRedbScheme?> GetSchemeAsync(long schemeId)

GetSqlPreviewAsync<TProps>(QueryContext<TProps>, CancellationToken)

Returns the SQL query that will be executed (for debugging)

public virtual Task<string> GetSqlPreviewAsync<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

GetSqlPreviewAsync<TProps>(QueryContext<TProps>)

Returns the SQL query that will be executed (for debugging)

public virtual Task<string> GetSqlPreviewAsync<TProps>(QueryContext<TProps> context) where TProps : class, new()

GetSqlPreviewAsyncPvt<TProps>(QueryContext<TProps>, CancellationToken)

v2-pvt SQL preview path: returns the inner _id-list SQL as-is.

protected virtual Task<string> GetSqlPreviewAsyncPvt<TProps>(QueryContext<TProps> context, CancellationToken cancellationToken = default) where TProps : class, new()

GetWindowSqlPreviewAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, FilterExpression?, string?, int?, int?, CancellationToken)

SQL preview for window query with FilterExpression (Pro version).

public virtual Task<string> GetWindowSqlPreviewAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, FilterExpression? filter, string? frameJson = null, int? take = null, int? skip = null, CancellationToken cancellationToken = default)

GetWindowSqlPreviewAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?, string?, int?, int?, CancellationToken)

SQL preview for window query.

public virtual Task<string> GetWindowSqlPreviewAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null, string? frameJson = null, int? take = null, int? skip = null, CancellationToken cancellationToken = default)

GetWindowSqlPreviewAsync(long, IEnumerable<WindowFieldRequest>, IEnumerable<WindowFuncRequest>, IEnumerable<WindowFieldRequest>, IEnumerable<WindowOrderRequest>, string?, string?, int?, int?)

SQL preview for window query.

public virtual Task<string> GetWindowSqlPreviewAsync(long schemeId, IEnumerable<WindowFieldRequest> selectFields, IEnumerable<WindowFuncRequest> windowFuncs, IEnumerable<WindowFieldRequest> partitionBy, IEnumerable<WindowOrderRequest> orderBy, string? filterJson = null, string? frameJson = null, int? take = null, int? skip = null)

ParseAggregateExpressionForPreview<TProps, TResult>(Expression<Func<RedbObject<TProps>, TResult>>)

Parses aggregate expression for preview (simplified version from RedbQueryable)

protected List<(string Alias, string FieldPath, string Function)> ParseAggregateExpressionForPreview<TProps, TResult>(Expression<Func<RedbObject<TProps>, TResult>> selector) where TProps : class, new()

ShouldUseLazyLoading<TProps>(QueryContext<TProps>)

Determines if lazy loading should be used for this query

protected bool ShouldUseLazyLoading<TProps>(QueryContext<TProps> context) where TProps : class, new()

Constructors