graphql-engine/server/tests-py/queries/subscriptions/live_queries/setup.yaml

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

38 lines
649 B
YAML
Raw Normal View History

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