Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/githubocto/flat-demo-sql-flights

A Flat Data GitHub Action demo repo
https://github.com/githubocto/flat-demo-sql-flights

demo flat-data

Last synced: 1 day ago
JSON representation

A Flat Data GitHub Action demo repo

Awesome Lists containing this project

README

        

# Flat Data Demo: SQL Flights Demo

This demo is part of a larger Flat Data project created by [GitHub OCTO](https://octo.github.com/). Read more about the project [here](https://octo.github.com/projects/flat-data).

## What this demo does

This repository uses a [Flat Data Action](https://github.com/githubocto/flat) to query a SQL database with flight data and downloads the data as a CSV file every day at 6am UTC. A SQL connection string has to be added to the GitHub repository as a secret.

Inside `.github/workflows/flat.yaml`:
```yaml
- name: Fetch data
uses: githubocto/flat@v3
with:
sql_connstring: ${{ secrets.CONNSTRING }} # a SQL database connection string fetched as a GitHub secret
sql_queryfile: query.sql # a file with the SQL query
downloaded_filename: sql-data.csv # should be a csv or json
```

diagram

## License

[MIT](LICENSE)