removing steel sql

This commit is contained in:
Priec
2026-07-15 23:37:15 +02:00
parent edda48d72c
commit b513dc0813
6 changed files with 14 additions and 19 deletions

1
Cargo.lock generated
View File

@@ -5951,6 +5951,7 @@ dependencies = [
"tracing-subscriber", "tracing-subscriber",
"tui-canvas-validation-core 0.8.2", "tui-canvas-validation-core 0.8.2",
"unicode-width 0.2.2", "unicode-width 0.2.2",
"url",
"uuid", "uuid",
"validator", "validator",
] ]

2
client

Submodule client updated: 4023272451...cf925ae05b

View File

@@ -26,7 +26,7 @@ service TableScript {
// • Allowed always: self-references (same table) // • Allowed always: self-references (same table)
// • Structured access via steel_get_column // • Structured access via steel_get_column
// requires an explicit link in table_definition_links // requires an explicit link in table_definition_links
// • Raw SQL access via steel_query_sql is permitted (still validated) // - Rejects raw SQL access; steel_query_sql is not part of the supported DSL
// - Detects and rejects circular dependencies across all scripts in the schema // - Detects and rejects circular dependencies across all scripts in the schema
// (self-references are allowed and not treated as cycles) // (self-references are allowed and not treated as cycles)
// - Transforms the script to decimal-safe operations (steel_decimal) // - Transforms the script to decimal-safe operations (steel_decimal)
@@ -70,10 +70,7 @@ message PostTableScriptRequest {
// • self-references are allowed without links // • self-references are allowed without links
// • other tables require an explicit link from the source table // • other tables require an explicit link from the source table
// (table_definition_links) or the request fails // (table_definition_links) or the request fails
// - Raw SQL access (no link required, but still validated): // - Raw SQL access is not supported; steel_query_sql is rejected
// (steel_query_sql "SELECT ...")
// • Basic checks disallow operations that imply prohibited types,
// e.g., EXTRACT(…), DATE_PART(…), ::DATE, ::TIMESTAMPTZ, ::BIGINT, CAST(…)
// - Self variable access in transformed scripts: // - Self variable access in transformed scripts:
// (get-var "column_name") is treated as referencing the current table // (get-var "column_name") is treated as referencing the current table
// //
@@ -85,8 +82,8 @@ message PostTableScriptRequest {
// BIGINT, TEXT, BOOLEAN, DATE, TIMESTAMPTZ // BIGINT, TEXT, BOOLEAN, DATE, TIMESTAMPTZ
// //
// Dependency tracking and cycles: // Dependency tracking and cycles:
// - Dependencies are extracted from steel_get_column, get-var, // - Dependencies are extracted from steel_get_column and get-var and stored
// and steel_query_sql and stored in script_dependencies with context // in script_dependencies with context
// - Cycles across tables are rejected (self-dependency is allowed) // - Cycles across tables are rejected (self-dependency is allowed)
string script = 3; string script = 3;
@@ -105,7 +102,6 @@ message TableScriptResponse {
// Human-readable warnings concatenated into a single string. Possible messages: // Human-readable warnings concatenated into a single string. Possible messages:
// - Warning if the script references itself (may affect first population) // - Warning if the script references itself (may affect first population)
// - Count of raw SQL queries present
// - Info about number of structured linked-table accesses // - Info about number of structured linked-table accesses
// - Warning if many dependencies may affect performance // - Warning if many dependencies may affect performance
string warnings = 2; string warnings = 2;
@@ -137,5 +133,6 @@ message ScriptDependency {
string target_table = 1; string target_table = 1;
string dependency_type = 2; string dependency_type = 2;
string column = 3; string column = 3;
// Deprecated legacy field. Raw SQL dependencies are no longer produced.
string query_fragment = 4; string query_fragment = 4;
} }

Binary file not shown.

View File

@@ -29,10 +29,7 @@ pub struct PostTableScriptRequest {
/// • self-references are allowed without links /// • self-references are allowed without links
/// • other tables require an explicit link from the source table /// • other tables require an explicit link from the source table
/// (table_definition_links) or the request fails /// (table_definition_links) or the request fails
/// * Raw SQL access (no link required, but still validated): /// * Raw SQL access is not supported; steel_query_sql is rejected
/// (steel_query_sql "SELECT ...")
/// • Basic checks disallow operations that imply prohibited types,
/// e.g., EXTRACT(…), DATE_PART(…), ::DATE, ::TIMESTAMPTZ, ::BIGINT, CAST(…)
/// * Self variable access in transformed scripts: /// * Self variable access in transformed scripts:
/// (get-var "column_name") is treated as referencing the current table /// (get-var "column_name") is treated as referencing the current table
/// ///
@@ -46,8 +43,8 @@ pub struct PostTableScriptRequest {
/// ///
/// Dependency tracking and cycles: /// Dependency tracking and cycles:
/// ///
/// * Dependencies are extracted from steel_get_column, get-var, /// * Dependencies are extracted from steel_get_column and get-var and stored
/// and steel_query_sql and stored in script_dependencies with context /// in script_dependencies with context
/// * Cycles across tables are rejected (self-dependency is allowed) /// * Cycles across tables are rejected (self-dependency is allowed)
#[prost(string, tag = "3")] #[prost(string, tag = "3")]
pub script: ::prost::alloc::string::String, pub script: ::prost::alloc::string::String,
@@ -69,7 +66,6 @@ pub struct TableScriptResponse {
/// Human-readable warnings concatenated into a single string. Possible messages: /// Human-readable warnings concatenated into a single string. Possible messages:
/// ///
/// * Warning if the script references itself (may affect first population) /// * Warning if the script references itself (may affect first population)
/// * Count of raw SQL queries present
/// * Info about number of structured linked-table accesses /// * Info about number of structured linked-table accesses
/// * Warning if many dependencies may affect performance /// * Warning if many dependencies may affect performance
#[prost(string, tag = "2")] #[prost(string, tag = "2")]
@@ -114,6 +110,7 @@ pub struct ScriptDependency {
pub dependency_type: ::prost::alloc::string::String, pub dependency_type: ::prost::alloc::string::String,
#[prost(string, tag = "3")] #[prost(string, tag = "3")]
pub column: ::prost::alloc::string::String, pub column: ::prost::alloc::string::String,
/// Deprecated legacy field. Raw SQL dependencies are no longer produced.
#[prost(string, tag = "4")] #[prost(string, tag = "4")]
pub query_fragment: ::prost::alloc::string::String, pub query_fragment: ::prost::alloc::string::String,
} }
@@ -233,7 +230,7 @@ pub mod table_script_client {
/// • Allowed always: self-references (same table) /// • Allowed always: self-references (same table)
/// • Structured access via steel_get_column /// • Structured access via steel_get_column
/// requires an explicit link in table_definition_links /// requires an explicit link in table_definition_links
/// • Raw SQL access via steel_query_sql is permitted (still validated) /// * Rejects raw SQL access; steel_query_sql is not part of the supported DSL
/// * Detects and rejects circular dependencies across all scripts in the schema /// * Detects and rejects circular dependencies across all scripts in the schema
/// (self-references are allowed and not treated as cycles) /// (self-references are allowed and not treated as cycles)
/// * Transforms the script to decimal-safe operations (steel_decimal) /// * Transforms the script to decimal-safe operations (steel_decimal)
@@ -332,7 +329,7 @@ pub mod table_script_server {
/// • Allowed always: self-references (same table) /// • Allowed always: self-references (same table)
/// • Structured access via steel_get_column /// • Structured access via steel_get_column
/// requires an explicit link in table_definition_links /// requires an explicit link in table_definition_links
/// • Raw SQL access via steel_query_sql is permitted (still validated) /// * Rejects raw SQL access; steel_query_sql is not part of the supported DSL
/// * Detects and rejects circular dependencies across all scripts in the schema /// * Detects and rejects circular dependencies across all scripts in the schema
/// (self-references are allowed and not treated as cycles) /// (self-references are allowed and not treated as cycles)
/// * Transforms the script to decimal-safe operations (steel_decimal) /// * Transforms the script to decimal-safe operations (steel_decimal)

2
server

Submodule server updated: c233f4ff28...32ec7b1bd7