graphql-engine/server/tests-py/queries/subscriptions/live_queries/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

38 lines
649 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
create table hge_tests.test_t2(
c1 int,
c2 text
);
create table hge_tests.articles(
id serial primary key,
content text,
title text,
is_public bool default false
);
- type: track_table
args:
schema: hge_tests
name: test_t2
- type: track_table
args:
schema: hge_tests
name: articles
- type: create_select_permission
args:
table:
schema: hge_tests
name: articles
role: public
permission:
columns:
- title
- content
filter:
is_public: true