1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use {
crate::{IndexFilter, Result, RowIter, Schema, StorageError, Value},
async_trait::async_trait,
};
#[async_trait(?Send)]
pub trait Store {
async fn fetch_schema(&self, _table_name: &str) -> Result<Option<Schema>> {
Err(StorageError::Unimplemented.into())
}
async fn scan_schemas(&self) -> Result<Vec<Schema>> {
Err(StorageError::Unimplemented.into())
}
async fn scan_data(&self, _table_name: &str) -> Result<RowIter> {
Err(StorageError::Unimplemented.into())
}
async fn scan_data_indexed(
&self,
_table_name: &str,
_index_filters: IndexFilter,
) -> Result<RowIter> {
Err(StorageError::Unimplemented.into())
}
async fn scan_index(
&self,
_table_name: &str,
_index_filter: IndexFilter,
) -> Result<Vec<Value>> {
Err(StorageError::Unimplemented.into())
}
}