graphql-engine/server/tests-py/pgdump/setup.yaml
Swann Moreau 5bc0355bdd [server] coalesce multiple run_sql calls in tests (#270)
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
2021-01-06 16:07:22 +00:00

48 lines
903 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
CREATE TABLE public.authors (
id serial NOT NULL PRIMARY KEY,
name text NOT NULL
);
CREATE TABLE public.articles (
id serial NOT NULL PRIMARY KEY,
author_id integer NOT NULL REFERENCES public.authors(id),
title text NOT NULL,
body text NOT NULL
);
- args:
name: authors
schema: public
type: track_table
- args:
name: articles
schema: public
type: track_table
- args:
delete:
columns: '*'
headers: []
insert:
columns: '*'
name: articles
retry_conf:
interval_sec: 10
num_retries: 0
timeout_sec: 60
table:
name: articles
schema: public
update:
columns:
- author_id
- body
- id
- title
webhook: https://httpbin.org/post
type: create_event_trigger