prod code 2, time for new functionality

This commit is contained in:
filipriec
2025-07-25 00:08:16 +02:00
parent c58ce52b33
commit 38a70128b0
5 changed files with 8 additions and 9 deletions

View File

@@ -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 }
}

View File

@@ -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

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;