From 4db8537fe4de2cb3fcf62850ea1a1cee700eeb30 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 19 Dec 2023 14:51:46 +0900 Subject: [PATCH] metadata export --- hasura-rest/metadata/api_limits.yaml | 1 + hasura-rest/metadata/backend_configs.yaml | 1 + hasura-rest/metadata/databases/databases.yaml | 13 +++---------- .../databases/default/tables/public_users.yaml | 9 +++++++++ .../metadata/databases/default/tables/tables.yaml | 1 + .../metadata/graphql_schema_introspection.yaml | 1 + hasura-rest/metadata/inherited_roles.yaml | 1 + hasura-rest/metadata/metrics_config.yaml | 1 + hasura-rest/metadata/network.yaml | 1 + hasura-rest/metadata/opentelemetry.yaml | 1 + hasura-rest/metadata/rest_endpoints.yaml | 1 + 11 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 hasura-rest/metadata/api_limits.yaml create mode 100644 hasura-rest/metadata/backend_configs.yaml create mode 100644 hasura-rest/metadata/databases/default/tables/public_users.yaml create mode 100644 hasura-rest/metadata/databases/default/tables/tables.yaml create mode 100644 hasura-rest/metadata/graphql_schema_introspection.yaml create mode 100644 hasura-rest/metadata/inherited_roles.yaml create mode 100644 hasura-rest/metadata/metrics_config.yaml create mode 100644 hasura-rest/metadata/network.yaml create mode 100644 hasura-rest/metadata/opentelemetry.yaml create mode 100644 hasura-rest/metadata/rest_endpoints.yaml diff --git a/hasura-rest/metadata/api_limits.yaml b/hasura-rest/metadata/api_limits.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-rest/metadata/api_limits.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-rest/metadata/backend_configs.yaml b/hasura-rest/metadata/backend_configs.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-rest/metadata/backend_configs.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-rest/metadata/databases/databases.yaml b/hasura-rest/metadata/databases/databases.yaml index 8360dbb..c18d336 100644 --- a/hasura-rest/metadata/databases/databases.yaml +++ b/hasura-rest/metadata/databases/databases.yaml @@ -4,13 +4,6 @@ connection_info: database_url: from_env: HASURA_GRAPHQL_DATABASE_URL - tables: - - table: - schema: public - name: users - insert_permissions: - - role: anonymous - permission: - check: {} - columns: - - name + isolation_level: read-committed + use_prepared_statements: false + tables: "!include default/tables/tables.yaml" diff --git a/hasura-rest/metadata/databases/default/tables/public_users.yaml b/hasura-rest/metadata/databases/default/tables/public_users.yaml new file mode 100644 index 0000000..282fcb9 --- /dev/null +++ b/hasura-rest/metadata/databases/default/tables/public_users.yaml @@ -0,0 +1,9 @@ +table: + name: users + schema: public +insert_permissions: + - role: anonymous + permission: + check: {} + columns: + - name diff --git a/hasura-rest/metadata/databases/default/tables/tables.yaml b/hasura-rest/metadata/databases/default/tables/tables.yaml new file mode 100644 index 0000000..0f402f4 --- /dev/null +++ b/hasura-rest/metadata/databases/default/tables/tables.yaml @@ -0,0 +1 @@ +- "!include public_users.yaml" diff --git a/hasura-rest/metadata/graphql_schema_introspection.yaml b/hasura-rest/metadata/graphql_schema_introspection.yaml new file mode 100644 index 0000000..61a4dca --- /dev/null +++ b/hasura-rest/metadata/graphql_schema_introspection.yaml @@ -0,0 +1 @@ +disabled_for_roles: [] diff --git a/hasura-rest/metadata/inherited_roles.yaml b/hasura-rest/metadata/inherited_roles.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-rest/metadata/inherited_roles.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-rest/metadata/metrics_config.yaml b/hasura-rest/metadata/metrics_config.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-rest/metadata/metrics_config.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-rest/metadata/network.yaml b/hasura-rest/metadata/network.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-rest/metadata/network.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-rest/metadata/opentelemetry.yaml b/hasura-rest/metadata/opentelemetry.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-rest/metadata/opentelemetry.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-rest/metadata/rest_endpoints.yaml b/hasura-rest/metadata/rest_endpoints.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-rest/metadata/rest_endpoints.yaml @@ -0,0 +1 @@ +[]