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/argument-1-S/index.html

Parameter Make.S

module In : Zset.S

Input Z-set (the rows being aggregated).

module Out : Zset.S

Output Z-set (the (group, value) result rows).

type group

The grouping-key type.

val compare_group : group -> group -> int

Total order on groups.

val group_of : In.elt -> group

The group an input element belongs to.

val measure : In.elt -> int

The element's contribution to its group's aggregate (1 for COUNT, the summed column for SUM). The running value is Σ measure * weight.

val result : group -> int -> Out.elt

Build the output row from a group and its aggregate value.