GENERIC SQL RUNNER TOOL
l
lossyconversion
SQL RUNNER TOOL, can be used to schedule complex queries directly to database that you have connected.Can use template render so we can use same query for different purpose where tool will replace our args with actual data.This tool is usually used in large complex companies that work with data and they use sql directly as ETL to filter and perform different tasks without the need to build a specific script to be able to handle all data.
Should be able to give timeouts between script:
[
2{
3 'env':'dev',
4 'execution_order':2,
5 'delay_before_run':1,
6 'delay_after_run':1,
7 'sql_file_path':'s3:/path/to/script',
8 'engine': 'mysql',
9 'db': 'some_db',
10 'sql_params':{
11 'table_name':'user_info',
12 'column1':'phone_number',
13 'data':'(1 23) 456-789'
14 },
15 {
16 'env':'dev',
17 'execution_order':1,
18 'delay_before_run':0,
19 'delay_after_run':0,
20 'sql_file_path':'s3:/path/to/script',
21 'engine': 'mysql',
22 'db': 'some_db',
23 'sql_params':{
24 'table_name':'test_one',
25 'column1':'key',
26 'data':'222'
27 }
28]
Log In