-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DPLT-1084 Add Hasura CLI config (#167)
- Loading branch information
1 parent
759670e
commit 6218297
Showing
15 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 3 | ||
endpoint: http://localhost:8080 | ||
admin_secret: myadminsecretkey | ||
metadata_directory: metadata | ||
actions: | ||
kind: synchronous | ||
handler_webhook_baseurl: http://localhost:3000 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
actions: [] | ||
custom_types: | ||
enums: [] | ||
input_objects: [] | ||
objects: [] | ||
scalars: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- name: default | ||
kind: postgres | ||
configuration: | ||
connection_info: | ||
database_url: | ||
from_env: HASURA_GRAPHQL_DATABASE_URL | ||
isolation_level: read-committed | ||
pool_settings: | ||
connection_lifetime: 600 | ||
idle_timeout: 180 | ||
max_connections: 50 | ||
retries: 1 | ||
use_prepared_statements: true | ||
tables: "!include default/tables/tables.yaml" |
23 changes: 23 additions & 0 deletions
23
hasura/metadata/databases/default/tables/public_indexer_log_entries.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
table: | ||
name: indexer_log_entries | ||
schema: public | ||
insert_permissions: | ||
- permission: | ||
check: {} | ||
columns: | ||
- block_height | ||
- function_name | ||
- message | ||
- timestamp | ||
- id | ||
role: append | ||
select_permissions: | ||
- permission: | ||
columns: | ||
- block_height | ||
- function_name | ||
- message | ||
- timestamp | ||
- id | ||
filter: {} | ||
role: append |
31 changes: 31 additions & 0 deletions
31
hasura/metadata/databases/default/tables/public_indexer_state.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
table: | ||
name: indexer_state | ||
schema: public | ||
insert_permissions: | ||
- permission: | ||
check: {} | ||
columns: | ||
- function_name | ||
- current_block_height | ||
- current_historical_block_height | ||
- status | ||
role: append | ||
select_permissions: | ||
- permission: | ||
columns: | ||
- function_name | ||
- current_block_height | ||
- current_historical_block_height | ||
- status | ||
filter: {} | ||
role: append | ||
update_permissions: | ||
- permission: | ||
check: {} | ||
columns: | ||
- function_name | ||
- current_block_height | ||
- current_historical_block_height | ||
- status | ||
filter: {} | ||
role: append |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- "!include public_indexer_log_entries.yaml" | ||
- "!include public_indexer_state.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DROP TABLE public.indexer_log_entries; | ||
DROP TABLE public.indexer_state; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SET check_function_bodies = false; | ||
CREATE TABLE public.indexer_log_entries ( | ||
id uuid DEFAULT gen_random_uuid() NOT NULL, | ||
function_name text NOT NULL, | ||
block_height numeric NOT NULL, | ||
"timestamp" timestamp without time zone DEFAULT CURRENT_TIMESTAMP, | ||
message text | ||
); | ||
CREATE TABLE public.indexer_state ( | ||
function_name character varying NOT NULL, | ||
current_block_height numeric(21,0) NOT NULL, | ||
status text, | ||
current_historical_block_height numeric(21,0) | ||
); | ||
ALTER TABLE ONLY public.indexer_log_entries | ||
ADD CONSTRAINT indexer_log_entries_pkey PRIMARY KEY (id); | ||
ALTER TABLE ONLY public.indexer_state | ||
ADD CONSTRAINT indexer_state_pkey PRIMARY KEY (function_name); |