diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-10 00:20:27 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-11 01:10:28 -0300 |
| commit | e3d42d5074be054c2f6a2e9f02805ab047f07db9 (patch) | |
| tree | 4d1d18dc8bd8cbca1ba87341f8067093f22354d2 /lib/kernel/EphemeralRelation.mli | |
| parent | 152f817f8dc622aec7936ace7c16ce645aaed159 (diff) | |
| download | RNT-e3d42d5074be054c2f6a2e9f02805ab047f07db9.tar.gz RNT-e3d42d5074be054c2f6a2e9f02805ab047f07db9.zip | |
ephemeral relation and generator at the kernel
Diffstat (limited to 'lib/kernel/EphemeralRelation.mli')
| -rw-r--r-- | lib/kernel/EphemeralRelation.mli | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/kernel/EphemeralRelation.mli b/lib/kernel/EphemeralRelation.mli new file mode 100644 index 0000000..e579abd --- /dev/null +++ b/lib/kernel/EphemeralRelation.mli @@ -0,0 +1,26 @@ +module Make (S : Abstract.Storage.STORAGE) : sig + type t + + val make : + heading:Concepts.Hash.hash -> + evaluator:string -> + source:string -> + entry:string -> + bindings:Concepts.Hash.hash -> + inputs:string BatFingerTree.t -> + unit -> + (t, Concepts.Condition.condition) result + + val store : S.transaction -> t -> (Concepts.Hash.hash, Concepts.Condition.condition) result + val load : S.transaction -> S.connection -> Concepts.Hash.hash -> (Protocols.Handle.t, Concepts.Condition.condition) result + val heading : t -> Concepts.Hash.hash + val evaluator : t -> string + val inputs : t -> string BatFingerTree.t + + module Error : sig + val malformed : unit -> Concepts.Condition.condition + val replay_not_implemented : unit -> Concepts.Condition.condition + end + + module Representation : Concepts.Encoding.Record.S with type t = t +end |
