RedBase Documentation

Welcome to the RedBase documentation portal. Browse the API reference, explore code examples, and learn how to build with REDB.

API Reference

Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.

Showing: redb.Core.Pro.Query Show all

redb.Core.Pro.Query

Classes

C ArrayElementAggregates Aggregates over the elements of an array in a grouping over the objects of a tree:
C ArrayGroupSqlBuilder The SQL of a grouping over the elements of an array, for every Pro provider. One shape (docs/array-g...
C GroupedWindowFunctionSql The window function of a window over groups, for every Pro builder (GroupBy and GroupByArray, flat a...
C HavingSqlTranslator Dialect-agnostic translator for HAVING JSON predicates produced by
C IdSubqueryExpression "The object id is one of those this statement selects": the condition a Pro statement that aggregate...
C LikeOperandSql BR-7 (2026-09-02): the operand of the StartsWith/EndsWith/Contains sugar (+IgnoreCase) is a
C ProFilterExpressionParser Pro version of FilterExpressionParser - supports arithmetic, functions and complex expressions.
C ProFilterJson The Pro provider compiles the query condition from FilterExpression; it has no translator for the fa...
C ProSqlBuilderBase Base SQL builder for Pro version with database-agnostic methods.
C PvtPrefilterBranch Predicates on ONE structure and ONE column. Multiple predicates are ANDed, which is the only way
C PvtPrefilterCandidate Branches ORed together. Score of the group is the score of its weakest branch.
C PvtPrefilterPlan Final plan handed to the SQL renderer.
C PvtPrefilterPlanner Builds a cutting step that narrows the object set BEFORE the PVT aggregate runs.
C PvtPrefilterPredicate One predicate applied to a single _values column.
C SqlParameterCollector Parameter collector for safe SQL query generation.
C WindowFrameClause The ROWS|RANGE BETWEEN ... AND ... clause of a window, compiled from the JSON the core writes

Interfaces

I ISqlDialectPro Pro extension of ISqlDialect with additional SQL methods for Pro features.

Enums

E PvtPrefilterKind Shape of the prefilter to emit. See docs/PVT_PREFILTER_PLAN.md.
E PvtPrefilterReason Why the planner decided what it decided. Emitted as SQL comments by ToSqlStringAsync, which is

redb.Core.Pro.Query.ArrayGroupSqlBuilder

Classes

C ArrayGroupSqlBuilder.IdSource The objects that take part: SQL whose single column _id lists them (each at most once), and an optio...
C ArrayGroupSqlBuilder.Result The grouping SELECT (with the window over it, when asked), the prefix and the suffix (a query hint) ...

redb.Core.Pro.Query.Models

Classes

C CompiledPvtQuery Compiled PVT query with SQL template and metadata.