prod code 2, time for new functionality
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user