{"id":18763704,"url":"https://github.com/inloop/sql-exporter","last_synced_at":"2025-08-01T16:43:23.040Z","repository":{"id":77722309,"uuid":"137360779","full_name":"inloop/sql-exporter","owner":"inloop","description":"Command line utility to export data from SQL database","archived":false,"fork":false,"pushed_at":"2018-08-01T14:44:14.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-20T19:29:23.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/inloop.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-14T13:18:35.000Z","updated_at":"2022-08-10T02:41:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"7de47ed0-b126-4c15-b9fc-1fe198480c6d","html_url":"https://github.com/inloop/sql-exporter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/inloop/sql-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fsql-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fsql-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fsql-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fsql-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inloop","download_url":"https://codeload.github.com/inloop/sql-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fsql-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264411163,"owners_count":23603804,"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":[],"created_at":"2024-11-07T18:27:08.849Z","updated_at":"2025-07-09T07:09:43.271Z","avatar_url":"https://github.com/inloop.png","language":"Go","readme":"# sql-exporter\n\n[![Build Status](https://travis-ci.org/inloop/sql-exporter.svg?branch=master)](https://travis-ci.org/inloop/sql-exporter)\n\nCommand line utility to export data from SQL database\n\n# Installation\n\nBasically download binary, make it executable and that's it.\n\n```\n# macos example\n# releases: https://github.com/inloop/sql-exporter/releases\ncurl -L https://github.com/inloop/sql-exporter/releases/download/0.1.4/sql-exporter-darwin-amd64 \u003e /usr/local/bin/sql-exporter\nchmod +x /usr/local/bin/sql-exporter\n```\n\n# Usage\n\n```\nsql-exporter dump -u postgres://username:password@hostname/database?sslmode=required -q \"SELECT * FROM table\" -o output.csv\n\n# more info by running `sql-exporter dump -h`\n\nUSAGE:\n   sql-exporter dump [command options]\n\nOPTIONS:\n   -u value, --db-url value  database connection string ({type}://{username}:{password}@{host}/{db}) [$DATABASE_URL]\n   -q value, --query value   SQL query as source for csv data [$QUERY]\n   -o value, --output value  output file name (if not specified, stdout is used) [$OUTPUT]\n```\n\nYou can also use pipes by omitting `-o` attribute:\n\n```\nsql-exporter dump -u postgres://username:password@hostname/database?sslmode=required -q \"SELECT * FROM table\" | grep \"blah\" \u003e output.csv\n```\n\n## Docker usage\n\n```\ndocker run --rm inloopx/sql-exporter sql-exporter dump -u postgres://username:password@hostname/database?sslmode=required -q \"SELECT * FROM table\" \u003e output.csv\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fsql-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finloop%2Fsql-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fsql-exporter/lists"}