graphql-engine/server/tests-py/queries/event_triggers/basic/partition_table_setup.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
898 B
YAML
Raw Normal View History

type: bulk
args:
- type: run_sql
args:
sql: |
CREATE TABLE hge_tests.measurement (
city_id int not null,
logdate date not null,
peaktemp int,
unitsales int
) PARTITION BY RANGE (logdate);
CREATE TABLE hge_tests.measurement_y2006m02 PARTITION OF hge_tests.measurement
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');
CREATE TABLE hge_tests.measurement_y2006m03 PARTITION OF hge_tests.measurement
FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');
- type: track_table
args:
schema: hge_tests
name: measurement
- type: create_event_trigger
args:
name: measurement_all
table:
schema: hge_tests
name: measurement
insert:
columns: "*"
update:
columns: "*"
delete:
columns: "*"
webhook: "{{EVENT_WEBHOOK_HANDLER}}"