diff --git a/server/src/table_script/handlers/dependency_analyzer.rs b/server/src/table_script/handlers/dependency_analyzer.rs index d601524..60afbd7 100644 --- a/server/src/table_script/handlers/dependency_analyzer.rs +++ b/server/src/table_script/handlers/dependency_analyzer.rs @@ -2,7 +2,6 @@ use std::collections::HashMap; use tonic::Status; -use sqlx::PgPool; use serde_json::{json, Value}; /// Represents the state of a node during dependency graph traversal. @@ -113,7 +112,7 @@ pub struct DependencyAnalyzer { impl DependencyAnalyzer { /// Creates a new dependency analyzer for the specified schema. - pub fn new(schema_id: i64, pool: PgPool) -> Self { + pub fn new(schema_id: i64) -> Self { Self { schema_id } } diff --git a/server/src/table_script/handlers/post_table_script.rs b/server/src/table_script/handlers/post_table_script.rs index 2b7d214..7f3118a 100644 --- a/server/src/table_script/handlers/post_table_script.rs +++ b/server/src/table_script/handlers/post_table_script.rs @@ -627,7 +627,7 @@ pub async fn post_table_script( .map_err(|e| Status::invalid_argument(e))?; // Create dependency analyzer for this schema - let analyzer = DependencyAnalyzer::new(table_def.schema_id, db_pool.clone()); + let analyzer = DependencyAnalyzer::new(table_def.schema_id); // Analyze script dependencies let dependencies = analyzer diff --git a/server/tests/mod.rs b/server/tests/mod.rs index ed7a4b5..f74ed13 100644 --- a/server/tests/mod.rs +++ b/server/tests/mod.rs @@ -2,5 +2,5 @@ pub mod tables_data; pub mod common; -// pub mod table_script; -// pub mod table_definition; +pub mod table_script; +pub mod table_definition; diff --git a/server/tests/tables_data/mod.rs b/server/tests/tables_data/mod.rs index 7621836..26f047e 100644 --- a/server/tests/tables_data/mod.rs +++ b/server/tests/tables_data/mod.rs @@ -1,6 +1,6 @@ // tests/tables_data/mod.rs -// pub mod get; -// pub mod delete; -// pub mod post; +pub mod get; +pub mod delete; +pub mod post; pub mod put; diff --git a/server/tests/tables_data/put/mod.rs b/server/tests/tables_data/put/mod.rs index de8915f..026ab9e 100644 --- a/server/tests/tables_data/put/mod.rs +++ b/server/tests/tables_data/put/mod.rs @@ -1,4 +1,4 @@ // tests/tables_data/put/mod.rs -// pub mod put_table_data_test; +pub mod put_table_data_test; pub mod put_table_data_steel_decimal_test;