diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-04-27 23:24:19 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-27 23:24:19 -0300 |
| commit | 97960adb8426e5270fe16b027e82a2c61674f821 (patch) | |
| tree | 03da5611898c06cd3868d4384ef4259005a29b69 /lib/relation.ml | |
| parent | 56492ad5f6f09d8c9f337d42803b64d1b9f0668b (diff) | |
| download | Sakura-97960adb8426e5270fe16b027e82a2c61674f821.tar.gz Sakura-97960adb8426e5270fe16b027e82a2c61674f821.zip | |
Foreign call PRL (#67)
Diffstat (limited to '')
| -rw-r--r-- | lib/relation.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/relation.ml b/lib/relation.ml index 0855b57..6e6a23c 100644 --- a/lib/relation.ml +++ b/lib/relation.ml @@ -28,6 +28,8 @@ module Lineage = struct | Aggregate of string * string * t end +type producer = (string * Conventions.AbstractValue.t) list -> Generator.t + type t = { hash : Conventions.Hash.t option; name : Conventions.Name.t; @@ -36,13 +38,13 @@ type t = { constraints : RelationConstraint.t option; cardinality : Conventions.Cardinality.t; generator : Generator.t option; + producer : producer option; membership_criteria : (string -> Tree.t option) -> Tuple.t -> bool; provenance : Provenance.t; lineage : Lineage.t; } -let make ~hash ~name ~schema ~tree ~constraints ~cardinality ~generator - ~membership_criteria ~provenance ~lineage = +let make ?(producer = None) ~hash ~name ~schema ~tree ~constraints ~cardinality ~generator ~membership_criteria ~provenance ~lineage () = { hash; name; @@ -51,6 +53,7 @@ let make ~hash ~name ~schema ~tree ~constraints ~cardinality ~generator constraints; cardinality; generator; + producer; membership_criteria; provenance; lineage; |
