{"id":20224793,"url":"https://github.com/githubocto/flat-demo-sql-flights","last_synced_at":"2025-03-03T12:26:54.364Z","repository":{"id":92897107,"uuid":"341995707","full_name":"githubocto/flat-demo-SQL-flights","owner":"githubocto","description":"A Flat Data GitHub Action demo repo","archived":false,"fork":false,"pushed_at":"2024-01-01T00:07:38.000Z","size":22156,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T23:16:15.637Z","etag":null,"topics":["demo","flat-data"],"latest_commit_sha":null,"homepage":"https://octo.github.com/projects/flat-data","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubocto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-24T18:26:33.000Z","updated_at":"2024-06-22T01:07:52.000Z","dependencies_parsed_at":"2023-03-06T20:31:05.116Z","dependency_job_id":"abbcf98f-ade4-42d4-b6f0-f2327f556037","html_url":"https://github.com/githubocto/flat-demo-SQL-flights","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubocto%2Fflat-demo-SQL-flights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubocto%2Fflat-demo-SQL-flights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubocto%2Fflat-demo-SQL-flights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubocto%2Fflat-demo-SQL-flights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubocto","download_url":"https://codeload.github.com/githubocto/flat-demo-SQL-flights/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241663209,"owners_count":19999274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","flat-data"],"created_at":"2024-11-14T07:09:05.149Z","updated_at":"2025-03-03T12:26:54.341Z","avatar_url":"https://github.com/githubocto.png","language":null,"readme":"# Flat Data Demo: SQL Flights Demo\n\nThis 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).\n\n## What this demo does\n\nThis 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.\n\nInside `.github/workflows/flat.yaml`:\n```yaml\n- name: Fetch data\n      uses: githubocto/flat@v3\n      with:\n        sql_connstring: ${{ secrets.CONNSTRING }} # a SQL database connection string fetched as a GitHub secret\n        sql_queryfile: query.sql # a file with the SQL query\n        downloaded_filename: sql-data.csv # should be a csv or json\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/githubocto/flat-demo-SQL-flights/readme-assets/assets/diagram.png\" alt=\"diagram\" width=\"400\"/\u003e\n\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubocto%2Fflat-demo-sql-flights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubocto%2Fflat-demo-sql-flights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubocto%2Fflat-demo-sql-flights/lists"}