![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
The gate builders of the query rewriter, for C/C++ callers. More...
#include "postgres.h"#include "utils/uuid.h"

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 δ(𝟙) = 𝟙. | |
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.
δ(token), with δ(𝟘) = 𝟘 and δ(𝟙) = 𝟙.
Definition at line 857 of file gate_builders.c.


token1 ⊖ token2, with X ⊖ X = 𝟘 ⊖ X = 𝟘 and X ⊖ 𝟘 = X.
Definition at line 822 of file gate_builders.c.


⊕ of n tokens: 𝟘 dropped, none gives 𝟘, one is returned.
Definition at line 444 of file gate_builders.c.


⊗ of n tokens: 𝟙 dropped, none gives 𝟙, one is returned.
Definition at line 410 of file gate_builders.c.

