aboutsummaryrefslogtreecommitdiffstats
path: root/lib/backend/managers/Handle.mli
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-07-11 00:51:11 -0300
committerGitHub <noreply@github.com>2026-07-11 00:51:11 -0300
commitbb3156b8ab78b035ce886bbe3021ec7cbe269d03 (patch)
tree82dd52655d25e49519a035f1245c703e910a2152 /lib/backend/managers/Handle.mli
parent85bff2fc22a131cce5ec2b4eb4b3dd8269c247cd (diff)
downloadRNT-bb3156b8ab78b035ce886bbe3021ec7cbe269d03.tar.gz
RNT-bb3156b8ab78b035ce886bbe3021ec7cbe269d03.zip
FOL: First Order Logic Execution Engine
Co-authored-by: Estevan Castilho <tevo@riajuu.net>
Diffstat (limited to '')
-rw-r--r--lib/backend/managers/Handle.mli22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/backend/managers/Handle.mli b/lib/backend/managers/Handle.mli
new file mode 100644
index 0000000..5fc82b8
--- /dev/null
+++ b/lib/backend/managers/Handle.mli
@@ -0,0 +1,22 @@
+module type HANDLER = sig
+ type t
+ type handle
+ type cursor
+
+ val open_ : t -> path:Concepts.Path.t -> (handle, Concepts.Condition.condition) result
+
+ val open_cursor :
+ handle ->
+ args:Concepts.Value.value BatFingerTree.t ->
+ (cursor, Concepts.Condition.condition) result
+
+ val next : cursor -> (Concepts.Tuple.t option, Concepts.Condition.condition) result
+ val close : cursor -> unit
+end
+
+module Make (Store : Abstract.Storage.STORAGE) : sig
+ include HANDLER
+
+ val create : Object.rnt_object_tree -> Store.transaction -> t
+ val object_ : handle -> Object.registry
+end