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
|
||||
|
||||
Reference in New Issue
Block a user