graphql-engine/server/tests-py/queries/event_triggers/selected_payload/setup.yaml

35 lines
567 B
YAML
Raw Normal View History

2018-09-18 09:21:57 +03:00
type: bulk
args:
2018-09-18 09:21:57 +03:00
- type: run_sql
args:
sql: |
create table hge_tests.test_t1(
c1 int,
c2 text
2018-09-18 09:21:57 +03:00
);
2018-09-18 09:21:57 +03:00
- type: track_table
args:
schema: hge_tests
name: test_t1
- type: create_event_trigger
args:
name: t1_payload
2018-09-18 09:21:57 +03:00
table:
schema: hge_tests
name: test_t1
insert:
columns: '*'
payload: '*'
2018-09-18 09:21:57 +03:00
update:
columns: '*'
payload: [c1]
2018-09-18 09:21:57 +03:00
delete:
columns: '*'
payload: [c2]
2018-09-18 09:21:57 +03:00
webhook: http://127.0.0.1:5592
retry_conf:
num_retries: 10
interval_sec: 100