steel scripts

This commit is contained in:
filipriec
2025-03-07 10:45:35 +01:00
parent 0e0578d158
commit b01eeddfe0
11 changed files with 102 additions and 233 deletions

View File

@@ -12,6 +12,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"proto/table_structure.proto",
"proto/table_definition.proto",
"proto/tables_data.proto",
"proto/table_script.proto",
],
&["proto"],
)?;

View File

@@ -4,11 +4,11 @@ package multieko2.table_script;
message PostTableScriptRequest {
int64 table_definition_id = 1;
string target_column = 2;
string rhai_script = 3;
string script = 3;
string description = 4;
}
message TableScriptResponse {
int64 id = 1;
string created_at = 2;
string warnings = 3;
string warnings = 2;
}

View File

@@ -19,6 +19,9 @@ pub mod proto {
pub mod tables_data {
include!("proto/multieko2.tables_data.rs");
}
pub mod table_script {
include!("proto/multieko2.table_script.rs");
}
pub const FILE_DESCRIPTOR_SET: &[u8] =
include_bytes!("proto/descriptor.bin");
}

Binary file not shown.

View File

@@ -0,0 +1,19 @@
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PostTableScriptRequest {
#[prost(int64, tag = "1")]
pub table_definition_id: i64,
#[prost(string, tag = "2")]
pub target_column: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub script: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableScriptResponse {
#[prost(int64, tag = "1")]
pub id: i64,
#[prost(string, tag = "2")]
pub warnings: ::prost::alloc::string::String,
}