generalization on the way, needs fixes

This commit is contained in:
filipriec
2025-03-08 16:25:36 +01:00
parent 48c614084d
commit 4a43097773
3 changed files with 70 additions and 10 deletions

View File

@@ -6,8 +6,7 @@ use crate::steel::validation::script::validate_script;
use serde_json::Value;
// Add these imports for the execution module and ScriptOperation
use crate::steel::handlers::execution;
use crate::steel::handlers::ScriptOperation;
use crate::steel::handlers::execution::{self, ScriptOperation};
const SYSTEM_COLUMNS: &[&str] = &["id", "deleted", "created_at"];
@@ -61,7 +60,8 @@ pub async fn post_table_script(
// Ensure the operation is valid (additional checks if needed)
match operation {
ScriptOperation::SetToColumn { .. } => {}, // Use directly without 'execution::'
ScriptOperation::SetToLocalColumn { .. } => {},
ScriptOperation::SetToExternalColumn { .. } => {},
}
// Call validation functions