Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/resource-watch/sql-compatibility-test
Script to run SQL queries on WRI API datasets in order to test which SQL statements are supported.
https://github.com/resource-watch/sql-compatibility-test
Last synced: 1 day ago
JSON representation
Script to run SQL queries on WRI API datasets in order to test which SQL statements are supported.
- Host: GitHub
- URL: https://github.com/resource-watch/sql-compatibility-test
- Owner: resource-watch
- Created: 2020-05-06T14:56:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-11T17:11:10.000Z (almost 3 years ago)
- Last Synced: 2024-04-09T11:25:06.977Z (7 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL Compatibility Test Script
## What is this repository for?
Use this repository to batch run SQL queries on WRI API datasets, in order to test the support for different SQL statements.
The result of running this test script is a Markdown table, which you can then copy as-is to the documentation of the WRI API.
## How do I get set up?
* Install [node](https://nodejs.org/en/)
* Clone this repository
* To install the project dependencies run: `npm install`
* To run the main test script, execute the following command on the root of the project: `node main`
* To run the test script for geospatial queries, execute the following command on the root of the project: `node geo`## How to extend the script?
### Extending queries
In the `queries` directory, there are two files with a list of the different SQL queries that are used to run the tests.
You can modify the existing queries or add new ones. The script will generate **one table row** per each query in the queries files.### Extending connectors
In the `connectors` directory, there are two files with a list of the connector types against which the test script will be ran.
Use it to modify the connector type or dataset you want to test. The script will generate **one table** per each connector type in the connector files.