diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 10:55:40 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 10:55:40 +0100 |
commit | 1f28832deaff3a2319cc88d5a83ffe506b784fc8 (patch) | |
tree | d4cfbe576725bb0952cb9e6fb21ea2931bad851e /src/storage | |
parent | 73a6a0c014fd850a97eba175abe1ef8e2d0220b4 (diff) | |
download | aerogramme-1f28832deaff3a2319cc88d5a83ffe506b784fc8.tar.gz aerogramme-1f28832deaff3a2319cc88d5a83ffe506b784fc8.zip |
start replacing engine
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/garage.rs | 2 | ||||
-rw-r--r-- | src/storage/in_memory.rs | 2 | ||||
-rw-r--r-- | src/storage/mod.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/garage.rs b/src/storage/garage.rs index f2cc216..c2ca1d3 100644 --- a/src/storage/garage.rs +++ b/src/storage/garage.rs @@ -7,7 +7,7 @@ pub struct GrgRef {} pub struct GrgValue {} impl IRowBuilder for GrgCreds { - fn row_store(&self) -> RowStore { + fn row_store(&self) -> Result<RowStore, Error> { unimplemented!(); } } diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs index dd255ad..6fa8138 100644 --- a/src/storage/in_memory.rs +++ b/src/storage/in_memory.rs @@ -8,7 +8,7 @@ pub struct MemRef {} pub struct MemValue {} impl IRowBuilder for MemCreds { - fn row_store(&self) -> RowStore { + fn row_store(&self) -> Result<RowStore, Error> { unimplemented!(); } } diff --git a/src/storage/mod.rs b/src/storage/mod.rs index b5c8518..c20853b 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -54,7 +54,7 @@ pub type AsyncResult<'a, T> = BoxFuture<'a, Result<T, Error>>; // ------ Row Builder pub trait IRowBuilder { - fn row_store(&self) -> RowStore; + fn row_store(&self) -> Result<RowStore, Error>; } pub type RowBuilder = Box<dyn IRowBuilder + Send + Sync>; @@ -63,7 +63,7 @@ pub trait IRowStore { fn new_row(&self, partition: &str, sort: &str) -> RowRef; } -type RowStore = Box<dyn IRowStore>; +pub type RowStore = Box<dyn IRowStore>; // ------- Row Item pub trait IRowRef |