An example of MiniQL - the tiny JSON-based query language inspired by GraphQL.
This example shows how to use miniql and @miniql/csv to run queries against a set of CSV files.
Example Star Wars data is courtesy of Kaggle.
You need Node.js installed to run this example code.
Any problems? Please log an issue on this repo.
Love this? Please star the repo and support my work
/miniql-csv-example
index.js -> Example code that runs various queries against the CSV files.
/data
... -> Various CSV files with data from the Star Wars universe.
Download a the zip file of this code or use Git to clone this repository.
Open a terminal, change directory to the repo and install dependencies:
cd miniql-csv-example
npm install
Open a terminal, change directory to the repo and run the code using Node.js:
cd miniql-csv-example
npm start
A bunch of example queries will run and results are displayed in the terminal.
Please read index.js
to see each example query.
Don't forget to star the repo and follow the developer on Twitter.