Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/githubocto/flat-demo-sql-flights
- Owner: githubocto
- License: mit
- Created: 2021-02-24T18:26:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-01T00:07:38.000Z (11 months ago)
- Last Synced: 2024-11-13T00:04:43.727Z (2 days ago)
- Topics: demo, flat-data
- Homepage: https://octo.github.com/projects/flat-data
- Size: 21.1 MB
- Stars: 14
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```## License
[MIT](LICENSE)