working setup where steel script works, with example
This commit is contained in:
39
server/src/steel/docs/pushing_using_steel.txt
Normal file
39
server/src/steel/docs/pushing_using_steel.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
❯ grpcurl -plaintext -d '{
|
||||
"table_definition_id": 16,
|
||||
"target_column": "idea_name",
|
||||
"script": "(begin (define idea_name \"aaa\") idea_name)",
|
||||
"description": "Set idea_name to Awesome Idea"
|
||||
}' localhost:50051 multieko2.table_script.TableScript/PostTableScript
|
||||
{
|
||||
"id": "7"
|
||||
}
|
||||
❯ grpcurl -plaintext -d '{
|
||||
"profile_name": "script",
|
||||
"table_name": "2025_berry",
|
||||
"data": {
|
||||
"idea_name": "sdfsfs",
|
||||
"category": "Technology",
|
||||
"impact_level": "High",
|
||||
"is_feasible": "true",
|
||||
"last_updated": "2025-03-11T12:34:56Z"
|
||||
}
|
||||
}' localhost:50051 multieko2.tables_data.TablesData/PostTableData
|
||||
ERROR:
|
||||
Code: InvalidArgument
|
||||
Message: Validation failed for 'idea_name'. Expected: 'aaa', Received: 'sdfsfs'
|
||||
❯ grpcurl -plaintext -d '{
|
||||
"profile_name": "script",
|
||||
"table_name": "2025_berry",
|
||||
"data": {
|
||||
"idea_name": "aaa",
|
||||
"category": "Technology",
|
||||
"impact_level": "High",
|
||||
"is_feasible": "true",
|
||||
"last_updated": "2025-03-11T12:34:56Z"
|
||||
}
|
||||
}' localhost:50051 multieko2.tables_data.TablesData/PostTableData
|
||||
{
|
||||
"success": true,
|
||||
"message": "Data inserted successfully",
|
||||
"insertedId": "1"
|
||||
}
|
||||
Reference in New Issue
Block a user