Skip to content

Commit 4fdd32e

Browse files
gentrishovaescoHarshCasperlocalstack-bot
authored
Fix snowflake coverage workflow (#169)
Co-authored-by: Przemek Denkiewicz <67517453+hovaesco@users.noreply.github.com> Co-authored-by: Harsh Mishra <erbeusgriffincasper@gmail.com> Co-authored-by: LocalStack Bot <localstack-bot@users.noreply.github.com>
1 parent 0a5d777 commit 4fdd32e

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/update-snowflake-feature-coverage.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,20 @@ jobs:
2828
path: snowflake
2929
token: ${{ secrets.GH_TOKEN }}
3030

31-
- name: Run the script
31+
- name: Run the script
32+
working-directory: snowflake
33+
env:
34+
PYTHONPATH: ${{ github.workspace }}/snowflake
3235
run: |
33-
cd localstack-docs
3436
pip install localstack lxml requests
35-
python ../snowflake/etc/coverage.py
37+
python ./etc/coverage.py
3638
3739
- name: Move the generated files
3840
run: |
3941
cd localstack-docs
40-
mv coverage-features.md src/content/docs/snowflake/features/index.md
41-
mv coverage-functions.md src/content/docs/snowflake/sql-functions.md
42-
mv coverage-restapi.md src/content/docs/snowflake/rest-api-endpoints.md
42+
mv ../snowflake/coverage-features.md src/content/docs/snowflake/features/index.md
43+
mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md
44+
mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md
4345
4446
- name: Check for changes
4547
id: check-for-changes
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
---
23
title: REST API
34
description: Get started with REST API Endpoints in LocalStack for Snowflake
@@ -6,17 +7,19 @@ tags: ["Base"]
67

78
## Introduction
89

9-
The [Snowflake REST API](https://docs.snowflake.com/en/developer-guide/snowflake-rest-api/snowflake-rest-api) provides REST API endpoints that allow you to manage schemas and tables in Snowflake. Snowflake REST APIs let you use the programming language of your choice to build your integrations.
10+
The [Snowflake REST API](https://docs.snowflake.com/en/developer-guide/snowflake-rest-api/snowflake-rest-api) provides REST API endpoints that allow you to manage schemas and tables in Snowflake. Snowflake REST APIs let you use the programming language of your choice to build your integrations.
1011

11-
LocalStack for Snowflake supports REST API endpoints that let you manage your Snowflake data locally.
12+
LocalStack for Snowflake supports REST API endpoints that let you manage your Snowflake data locally.
1213

13-
## Supported Snowflake REST API endpoints
14+
## Supported Snowflake REST API endpoints
1415

1516
LocalStack for Snowflake supports the following REST API endpoints to manage your Snowflake data locally:
1617

1718

18-
| Supported Endpoint | Description |
19-
|---------------------------------------------------|---------------------------------------------|
20-
| `POST /api/v2/databases` | Creates a database. |
21-
| `GET /api/v2/databases` | Lists accessible databases. |
22-
| `GET /api/v2/databases/<name>` | Fetch a specific database. |
19+
| Supported Endpoint | Description |
20+
|--------------------|-------------|
21+
| `GET /api/v2/databases` | Lists databases. |
22+
| `POST /api/v2/databases` | Creates a database. |
23+
| `GET /api/v2/databases/<name>` | Fetches a database. |
24+
| `PUT /api/v2/databases/<name>` | Creates a new, or alters an existing, database. |
25+

0 commit comments

Comments
 (0)