Skip to content

Commit

Permalink
Added my-no-sql-server-core
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Nov 20, 2024
1 parent d47042d commit 2dc8488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/db_instance.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use my_no_sql_sdk::core::db::DbTableName;
use tokio::sync::RwLock;

use std::{collections::HashMap, sync::Arc};
Expand All @@ -15,7 +16,7 @@ impl DbInstance {
}
}

pub async fn get_table_names(&self) -> Vec<String> {
pub async fn get_table_names(&self) -> Vec<DbTableName> {
let read_access = self.tables.read().await;

return read_access
Expand Down
4 changes: 2 additions & 2 deletions src/db_table_wrapper.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use std::{collections::VecDeque, sync::Arc};

use crate::db_snapshots::{DbPartitionSnapshot, DbTableSnapshot};
use my_no_sql_sdk::core::db::{DbRow, DbTable};
use my_no_sql_sdk::core::db::{DbRow, DbTable, DbTableName};
use my_no_sql_sdk::core::my_json::json_writer::JsonArrayWriter;
use tokio::sync::RwLock;

#[cfg(feature = "master-node")]
use my_no_sql_sdk::core::db::DbTableAttributes;

pub struct DbTableWrapper {
pub name: String,
pub name: DbTableName,
pub data: RwLock<DbTable>,
}

Expand Down

0 comments on commit 2dc8488

Please sign in to comment.