aboutsummaryrefslogtreecommitdiffstats
path: root/lib/backend
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-07-09 00:33:37 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-07-09 00:33:37 +0000
commit2566cfae03199f8e90098c84b712d48182d9b806 (patch)
tree4209d319e67f0f055e5055bc67a022bfdb3dd43f /lib/backend
parent5a799734ddd523027a7d6ef8b0acab6d0b796ec6 (diff)
downloadRNT-2566cfae03199f8e90098c84b712d48182d9b806.tar.gz
RNT-2566cfae03199f8e90098c84b712d48182d9b806.zip
Interface for the storage layer
Diffstat (limited to '')
-rw-r--r--lib/backend/storage/LMDB.ml11
-rw-r--r--lib/backend/storage/LMDB.mli1
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/backend/storage/LMDB.ml b/lib/backend/storage/LMDB.ml
new file mode 100644
index 0000000..3478da2
--- /dev/null
+++ b/lib/backend/storage/LMDB.ml
@@ -0,0 +1,11 @@
+type connection = unit
+type transaction = unit
+
+let connect (_: Concepts.Configuration.configuration) = failwith "TODO"
+
+let start (_: connection) = failwith "TODO"
+let commit (_: transaction) = failwith "TODO"
+let abort (_: transaction) = failwith "TODO"
+
+let get (_: transaction) (_: Concepts.Hash.hash) = failwith "TODO"
+let put (_: transaction) (_: Concepts.Hash.hash) (_: Concepts.Representation.blob) = failwith "TODO"
diff --git a/lib/backend/storage/LMDB.mli b/lib/backend/storage/LMDB.mli
new file mode 100644
index 0000000..dde4b6e
--- /dev/null
+++ b/lib/backend/storage/LMDB.mli
@@ -0,0 +1 @@
+include Abstract.Storage