aboutsummaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-01 15:36:06 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-01 15:36:06 +0100
commit3026b217774a51e01cca1ae584fba8c6398754cc (patch)
tree9279ae4eee0fcb13f3f66aadc96ca8e0f2452b2b /src/storage
parent92fea414d9d113761b788e409a025ad9cff06071 (diff)
downloadaerogramme-3026b217774a51e01cca1ae584fba8c6398754cc.tar.gz
aerogramme-3026b217774a51e01cca1ae584fba8c6398754cc.zip
integration to login with an enum
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/storage/mod.rs b/src/storage/mod.rs
index 4ef2d61..bc26379 100644
--- a/src/storage/mod.rs
+++ b/src/storage/mod.rs
@@ -8,8 +8,8 @@
* into the object system so it is not exposed.
*/
-mod in_memory;
-mod garage;
+pub mod in_memory;
+pub mod garage;
pub enum Selector<'a> {
Range{ begin: &'a str, end: &'a str },
@@ -29,11 +29,14 @@ pub enum Error {
}
pub trait RowRealization: Sized {
+ type Builder: RowBuilder<Self>;
type Store: RowStore<Self>;
type Ref: RowRef<Self>;
type Value: RowValue<Self>;
}
+pub trait StorageEngine: RowRealization {}
+
// ------ Row Builder
pub trait RowBuilder<R: RowRealization>
{