mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
596bccde49
this does not generate coverage report yet
42 lines
684 B
YAML
42 lines
684 B
YAML
type: bulk
|
|
args:
|
|
|
|
#Author table
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
create table author(
|
|
id serial primary key,
|
|
name text unique,
|
|
remarks text
|
|
);
|
|
|
|
|
|
#Create resident table
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
CREATE TABLE hge_tests.resident (
|
|
id SERIAL PRIMARY KEY,
|
|
name TEXT NOT NULL,
|
|
age INTEGER NOT NULL
|
|
)
|
|
|
|
#Insert values
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
insert into author (name)
|
|
values
|
|
('Author 1'),
|
|
('Author 2')
|
|
|
|
#Insert values
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
insert into hge_tests.resident (name,age)
|
|
values
|
|
('Resident 1', 23),
|
|
('Resident 2', 31)
|