package granary

  1. Overview
  2. Docs
Pure-OCaml SQL engine

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.0.3.tar.gz
sha256=8b18780ea373be48301d9f333925860a2f9110fc0ac28684295118d72b65a67e
sha512=25ca3c9c5e2b528704a542502e0f37dc33ba003f65622d969b8c2b800778585f8ef0cf89b36e6679832e3993e8303aecddfc662742baf7044d6afe4a796b8f11

doc/granary.ivm/Granary_ivm/Aggregate/Make/index.html

Module Aggregate.MakeSource

Make (S) builds an incremental grouped-aggregate operator for spec S.

Parameters

module S : SPEC

Signature

Sourcetype t

A stateful aggregate operator: per-group running totals plus the materialized output relation.

Sourceval create : unit -> t

A fresh operator with no groups.

Sourceval step : t -> S.In.t -> S.Out.t

step t delta folds the input delta into the per-group totals and returns the output delta (retract/insert of changed group rows), also folding it into output.

Sourceval output : t -> S.Out.t

The current materialized (group, value) relation.