From cfc641a9bb97c94e5993f895a8bcdf24214adc83 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Mon, 5 Oct 2026 22:40:22 -0300 Subject: journal for the website --- lib/kernel/View.mli | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/kernel/View.mli (limited to 'lib/kernel/View.mli') diff --git a/lib/kernel/View.mli b/lib/kernel/View.mli new file mode 100644 index 0000000..04e75ff --- /dev/null +++ b/lib/kernel/View.mli @@ -0,0 +1,21 @@ +(** relations as values a subsystem hands to the tree. *) + +type heading = Protocols.Schematics.attribute_description BatMap.String.t +type rows = (Concepts.Tuple.t list, Concepts.Condition.condition) result + +(** a relation holding [tuples], which never changes. *) +val fixed : heading -> Concepts.Tuple.t list -> Protocols.Handle.t + +(** a relation computed from a directory of relations. Read as it is, it + is computed against [current ()] each time; read through a snapshot, + it is computed against the snapshot instead (see [Protocols.Derived]), + so it is what it was, or would be, at that moment. *) +val computed : + heading -> + current:(unit -> (Protocols.Handle.t, Concepts.Condition.condition) result) -> + (Protocols.Handle.t -> rows) -> + Protocols.Handle.t + +(** the heading and tuples of a relation, read whole. *) +val read : + Protocols.Handle.t -> (heading * Concepts.Tuple.t list, Concepts.Condition.condition) result -- cgit v1.2.3