Table of Contents

Interface IClickHouseAggregateRenderer

Namespace
NextORM.Core
Assembly
nextorm.core.dll

A dialect's renderer for the ClickHouse aggregate catalogue that has no cross-provider spelling (the statistical/probability aggregates, the parameterised quantile algorithms, the array- and tuple-returning aggregates, the sequence aggregates and the time-series grid aggregates). The object's presence is the capability, so a name the dialect reports as supported always has a rendering; every other provider fails closed instead of emitting invalid SQL.

public interface IClickHouseAggregateRenderer
Extension Methods

Methods

Render(string, IReadOnlyList<string>, Type)

Renders the aggregate name over the already-rendered arguments; resultType is the declared CLR result type, used to normalise the native result (signed/int/array/tuple casts).

string Render(string name, IReadOnlyList<string> arguments, Type resultType)

Parameters

name string
arguments IReadOnlyList<string>
resultType Type

Returns

string

RenderParameterised(string, IReadOnlyList<string>, IReadOnlyList<string>, Type)

Renders the parameterised aggregate name in the two-parenthesis form name(parameters)(arguments); resultType is the declared CLR result type, used to normalise the native result.

string RenderParameterised(string name, IReadOnlyList<string> parameters, IReadOnlyList<string> arguments, Type resultType)

Parameters

name string
parameters IReadOnlyList<string>
arguments IReadOnlyList<string>
resultType Type

Returns

string

Supports(string)

True when the aggregate name can be rendered.

bool Supports(string name)

Parameters

name string

Returns

bool