ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
agg_token.h File Reference

Aggregate-provenance token type used in SQL aggregate functions. More...

#include "provsql_utils.h"
Include dependency graph for agg_token.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  agg_token
 Aggregate token bundling a provenance UUID with a running value. More...
 

Detailed Description

Aggregate-provenance token type used in SQL aggregate functions.

Defines the agg_token composite type that pairs a provenance circuit UUID (as a hex string) with an aggregate running value. It is passed between the transition and final functions of ProvSQL's custom aggregate operators so that both the provenance token and its associated numeric value travel together through a GROUP BY query.

Definition in file agg_token.h.