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

The gate builders of the query rewriter, for C/C++ callers. More...

#include "postgres.h"
#include "utils/uuid.h"
Include dependency graph for gate_builders.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

pg_uuid_t provsql_build_times (const pg_uuid_t *tokens, int n)
 ⊗ of n tokens: 𝟙 dropped, none gives 𝟙, one is returned.
pg_uuid_t provsql_build_plus (const pg_uuid_t *tokens, int n)
 ⊕ of n tokens: 𝟘 dropped, none gives 𝟘, one is returned.
pg_uuid_t provsql_build_monus (const pg_uuid_t *token1, const pg_uuid_t *token2)
 token1 ⊖ token2, with X ⊖ X = 𝟘 ⊖ X = 𝟘 and X ⊖ 𝟘 = X.
pg_uuid_t provsql_build_delta (const pg_uuid_t *token)
 δ(token), with δ(𝟘) = 𝟘 and δ(𝟙) = 𝟙.

Detailed Description

The gate builders of the query rewriter, for C/C++ callers.

The same constructions, at the same addresses, as the SQL-callable provenance_times, provenance_plus, provenance_monus and provenance_delta, without the Datum marshalling: rebuilding a circuit with them gives the gates the rewriter would have built from the same operands (see the equation-system resolution of recursive queries).

Definition in file gate_builders.h.

Function Documentation

◆ provsql_build_delta()

pg_uuid_t provsql_build_delta ( const pg_uuid_t * token)

δ(token), with δ(𝟘) = 𝟘 and δ(𝟙) = 𝟙.

Definition at line 857 of file gate_builders.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ provsql_build_monus()

pg_uuid_t provsql_build_monus ( const pg_uuid_t * token1,
const pg_uuid_t * token2 )

token1 ⊖ token2, with X ⊖ X = 𝟘 ⊖ X = 𝟘 and X ⊖ 𝟘 = X.

Definition at line 822 of file gate_builders.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ provsql_build_plus()

pg_uuid_t provsql_build_plus ( const pg_uuid_t * tokens,
int n )

⊕ of n tokens: 𝟘 dropped, none gives 𝟘, one is returned.

Definition at line 444 of file gate_builders.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ provsql_build_times()

pg_uuid_t provsql_build_times ( const pg_uuid_t * tokens,
int n )

⊗ of n tokens: 𝟙 dropped, none gives 𝟙, one is returned.

Definition at line 410 of file gate_builders.c.

Here is the call graph for this function:
Here is the caller graph for this function: