aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/SubstantialRelation.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-09-23 03:32:15 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-09-23 03:32:15 -0300
commit882511dc8c0abded18ba6abdca64938db2652771 (patch)
treed1ebc2896cf9bb939a89c10d626d19cd5d4f591e /lib/kernel/SubstantialRelation.ml
parentb4422c99e10a8daee452b22aea84cb1f68ae54bc (diff)
downloadRNT-882511dc8c0abded18ba6abdca64938db2652771.tar.gz
RNT-882511dc8c0abded18ba6abdca64938db2652771.zip
lift retaining, membership and mode checks out of ephemeral relation
Diffstat (limited to '')
-rw-r--r--lib/kernel/SubstantialRelation.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/SubstantialRelation.ml b/lib/kernel/SubstantialRelation.ml
index 7beb133..b94e2f8 100644
--- a/lib/kernel/SubstantialRelation.ml
+++ b/lib/kernel/SubstantialRelation.ml
@@ -145,7 +145,7 @@ module Make (S : Abstract.Storage.STORAGE) = struct
let modes_of description =
Concepts.Mode.of_list
[ Concepts.Mode.enumerable Concepts.Cardinality.Finite;
- Concepts.Mode.decides_when (BatMap.String.keys description |> BatList.of_enum) ]
+ {Concepts.Mode.bound= Concepts.Mode.attributes_of_map description; affords= Decides} ]
let modes tx relation = schema_of tx relation |> Result.map modes_of
@@ -161,7 +161,7 @@ module Make (S : Abstract.Storage.STORAGE) = struct
(* The protocol takes a tuple, not bytes: encoding is this object's business, and a caller
that had to produce the exact stored bytes would have to know this encoding to do it. *)
method contains (tuple : Concepts.Tuple.t) =
- SI.with_transaction storage (fun tx -> contains_tuple tx relation tuple)
+ SI.with_read storage (fun tx -> contains_tuple tx relation tuple)
method describe () = Ok (Protocols.Schematics.Relation description)