{"id":18811384,"url":"https://github.com/chop-dbhi/sql-extractor","last_synced_at":"2026-01-11T06:30:16.789Z","repository":{"id":141917850,"uuid":"89979111","full_name":"chop-dbhi/sql-extractor","owner":"chop-dbhi","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-02T18:34:31.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-12-29T23:54:50.174Z","etag":null,"topics":["archive","csv","etl","extractor","rdbms","s3","sql"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chop-dbhi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-02T01:37:27.000Z","updated_at":"2019-05-20T16:48:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"06a80d08-42b4-4ab9-9da5-ffe8d05e09e0","html_url":"https://github.com/chop-dbhi/sql-extractor","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/chop-dbhi%2Fsql-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chop-dbhi%2Fsql-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chop-dbhi%2Fsql-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chop-dbhi%2Fsql-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chop-dbhi","download_url":"https://codeload.github.com/chop-dbhi/sql-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239748254,"owners_count":19690232,"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":["archive","csv","etl","extractor","rdbms","s3","sql"],"created_at":"2024-11-07T23:26:05.754Z","updated_at":"2026-01-11T06:30:16.716Z","avatar_url":"https://github.com/chop-dbhi.png","language":"Go","readme":"# SQL Extractor\n\nA service that schedules and executes queries against a relational database and writes the output to files on the local filesystem or S3.\n\nThe primary use case is batch extraction of data for an ETL pipeline.\n\n## Getting Started\n\nThis service handles the lifecycle of scheduling the queries and writing them to files. It delegates execution of queries to [SQL Agent](https://github.com/chop-dbhi/sql-agent).\n\nThe minimum requirement is a [`config.yml` file](./config.yml). The main sections of the config include:\n\n- `sqlagent` - The connection info to the SQL Agent service.\n- `connections` - A map of database connection info by name.\n- `queries` - An array of queries defined inline or referencing a file.\n- `schedule` - The schedule to run this set of queries.\n\nAdditional options are provided to define where files are written and their format.\n\n## Deployment\n\nCurrently the simplest way to deploy this service is to use Docker. A [docker-compose.yml](./docker-compose.yml) is provided for reference.\n\n## Development\n\nThe [dep](https://github.com/golang/dep) tool is used for managing dependencies. Install by running:\n\n```\ngo get github.com/golang/dep/...\n```\n\nThen run the following to install the dependencies:\n\n```\ndep ensure\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchop-dbhi%2Fsql-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchop-dbhi%2Fsql-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchop-dbhi%2Fsql-extractor/lists"}