From 2566cfae03199f8e90098c84b712d48182d9b806 Mon Sep 17 00:00:00 2001 From: Estevan Castilho Date: Thu, 9 Jul 2026 00:33:37 +0000 Subject: Interface for the storage layer --- lib/backend/storage/LMDB.ml | 11 +++++++++++ lib/backend/storage/LMDB.mli | 1 + 2 files changed, 12 insertions(+) create mode 100644 lib/backend/storage/LMDB.ml create mode 100644 lib/backend/storage/LMDB.mli (limited to 'lib/backend') 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 -- cgit v1.2.3