Skip to content

AggregateOptions

[<Interface>]
type AggregateOptions<'T> =
    abstract member inverse: Inverse<'T> option with get, set
    abstract member result: ('T -> SQLInputValue) option with get, set
    abstract member start: U2<'T,(unit -> 'T)> with get, set
    abstract member step: Step<'T> with get, set
    static member Create (start: U2<'T,(unit -> 'T)>, step: Step<'T>, ?result: ('T -> SQLInputValue), ?inverse: Inverse<'T>, ?deterministic: bool, ?directOnly: bool, ?useBigIntArguments: bool, ?varargs: bool) : AggregateOptions<'T>
AssemblyXantham.Fable.Node
ImplementsFunctionOptions
Attributes[<Interface>]

Declared inside

Inverse
Step

Properties

abstract member inverse: Inverse<'T> option with get, set

When this function is provided, the aggregate method will work as a window function. The function receives the current state and the dropped row value. The return value of this function should be the new state.

abstract member result: ('T -> SQLInputValue) option with get, set

The function to call to get the result of the aggregation. The function receives the final state and should return the result of the aggregation.

abstract member start: U2<'T,(unit -> 'T)> with get, set

The identity value for the aggregation function. This value is used when the aggregation function is initialized. When a Function is passed the identity will be its return value.

abstract member step: Step<'T> with get, set

The function to call for each row in the aggregation. The function receives the current state and the row value. The return value of this function should be the new state.

Methods

static member Create (start: U2<'T,(unit -> 'T)>, step: Step<'T>, ?result: ('T -> SQLInputValue), ?inverse: Inverse<'T>, ?deterministic: bool, ?directOnly: bool, ?useBigIntArguments: bool, ?varargs: bool) : AggregateOptions<'T>