gluesql_git_storage/
store.rs1use {
2 crate::GitStorage,
3 async_trait::async_trait,
4 gluesql_core::{
5 data::{Key, Schema},
6 error::Result,
7 store::{DataRow, RowIter, Store},
8 },
9};
10
11#[async_trait(?Send)]
12impl Store for GitStorage {
13 async fn fetch_all_schemas(&self) -> Result<Vec<Schema>> {
14 self.get_store().fetch_all_schemas().await
15 }
16
17 async fn fetch_schema(&self, table_name: &str) -> Result<Option<Schema>> {
18 self.get_store().fetch_schema(table_name).await
19 }
20
21 async fn fetch_data(&self, table_name: &str, key: &Key) -> Result<Option<DataRow>> {
22 self.get_store().fetch_data(table_name, key).await
23 }
24
25 async fn scan_data(&self, table_name: &str) -> Result<RowIter> {
26 self.get_store().scan_data(table_name).await
27 }
28}