{"id":15003435,"url":"https://github.com/alexhokl/sql-export","last_synced_at":"2026-02-10T04:33:23.244Z","repository":{"id":57696181,"uuid":"80335542","full_name":"alexhokl/sql-export","owner":"alexhokl","description":"A command line tool to dump SQL data using T-SQL query","archived":false,"fork":false,"pushed_at":"2022-05-22T12:30:57.000Z","size":139,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T04:26:57.888Z","etag":null,"topics":["cli","command-line","mssql","spreadsheet"],"latest_commit_sha":null,"homepage":"","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/alexhokl.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}},"created_at":"2017-01-29T08:11:01.000Z","updated_at":"2022-05-16T10:19:23.000Z","dependencies_parsed_at":"2022-09-06T14:40:50.613Z","dependency_job_id":null,"html_url":"https://github.com/alexhokl/sql-export","commit_stats":null,"previous_names":["alexhokl/go-sql-export"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexhokl/sql-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexhokl%2Fsql-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexhokl%2Fsql-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexhokl%2Fsql-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexhokl%2Fsql-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexhokl","download_url":"https://codeload.github.com/alexhokl/sql-export/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexhokl%2Fsql-export/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265322512,"owners_count":23746632,"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":["cli","command-line","mssql","spreadsheet"],"created_at":"2024-09-24T18:58:28.317Z","updated_at":"2026-02-10T04:33:18.228Z","avatar_url":"https://github.com/alexhokl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL export CLI [![Build Status](https://travis-ci.org/alexhokl/sql-export.svg?branch=master)](https://travis-ci.org/alexhokl/sql-export)\n\nA command line tool to dump SQL data using T-SQL query\n\nUsage:\n  sql-export [command]\n\n### Available Commands\n\nCommand | Description\n---     | ---\nscreen  | Dump data from database and print it on screen\ngsheets | Dump data from database and upload onto Google Sheets\n\nUse \"sql-export [command] --help\" for more information about a command.\n\nExample:\n  `sql-export gsheets -c config.yml`\n\n### Sample configuration\n\n##### `config.yml`\n\n```yml\ndatabase_type: mssql\ndatabase:\n  server: example.com\n  port: 1433\n  name: Northwind\n  username: sa\n  password: pass\ngoogle_client_secret_file_path: ~/Downloads/client-secret.json\ndocument_name: Google.DocumentExport.Example\nsheets:\n  - name: users\n    query: \"SELECT TOP 10 * FROM Users\"\n    columns:\n      - index: 5\n        data_type: date\n        format: dd-MM-yyyy\n```\n\n### Installation\n\n```sh\ngo install github.com/alexhokl/sql-export@latest\n```\n\n### Development\n\nPlease visit [Google API console](https://console.cloud.google.com/) to create\nan application and enable Google Drive API. From [section Credentials in APIs\nand services](https://console.cloud.google.com/apis/credentials), download\ncredentials file and save it. Configure the path to this file as\n`google_client_secret_file_path`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexhokl%2Fsql-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexhokl%2Fsql-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexhokl%2Fsql-export/lists"}