You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed inputs to not have _data attached to them. Changed connection to database to be a contextmanager. Updated config to have a base of connections instead of sql. Made all necessary updates to readme and tests.
@@ -75,7 +75,9 @@ Alternatively, when running an action, you can pass in the host, username, passw
75
75
76
76
**Note**: When modifying the configuration in`/opt/stackstorm/configs/` please remember to tell StackStorm to load these new values by running `st2ctl reload --register-configs`
77
77
78
-
# Actions
78
+
# Usage
79
+
80
+
## Actions
79
81
80
82
| Action | Description |
81
83
|--------|-------------|
@@ -84,3 +86,20 @@ Alternatively, when running an action, you can pass in the host, username, passw
84
86
| insert_bulk | Bulk insert data into a database table. Insert data is passed as an array of objects. |
85
87
| update | Update data in a database table. |
86
88
| delete | Delete data from a database table. |
89
+
90
+
## Where statements
91
+
92
+
The Update and Delete actions give the option to include where data into the query. This only works for AND statements.
93
+
94
+
Example:
95
+
```
96
+
where = {
97
+
'column_1': 'value_1',
98
+
'column_2': 'value_2'
99
+
}
100
+
101
+
Produces the statement:
102
+
WHERE column_1 == 'value_1' AND column_2 == 'value_2'
103
+
```
104
+
105
+
For more complicated queries please use the query action.
0 commit comments