{"id":31720826,"url":"https://github.com/oieioi/redash_exporter","last_synced_at":"2025-10-09T03:19:38.317Z","repository":{"id":56891379,"uuid":"183192831","full_name":"oieioi/redash_exporter","owner":"oieioi","description":"📦 Export Redash queries as SQL files","archived":false,"fork":false,"pushed_at":"2020-05-01T01:41:35.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-18T11:03:51.976Z","etag":null,"topics":["redash","rubygem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/oieioi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-24T09:14:53.000Z","updated_at":"2023-06-15T03:20:08.000Z","dependencies_parsed_at":"2022-08-21T00:20:35.327Z","dependency_job_id":null,"html_url":"https://github.com/oieioi/redash_exporter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/oieioi/redash_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieioi%2Fredash_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieioi%2Fredash_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieioi%2Fredash_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieioi%2Fredash_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oieioi","download_url":"https://codeload.github.com/oieioi/redash_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieioi%2Fredash_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278887175,"owners_count":26063128,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["redash","rubygem"],"created_at":"2025-10-09T03:19:08.877Z","updated_at":"2025-10-09T03:19:38.312Z","avatar_url":"https://github.com/oieioi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/redash_exporter.svg)](https://badge.fury.io/rb/redash_exporter)\n![Ruby](https://github.com/oieioi/redash_exporter/workflows/Ruby/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/oieioi/redash_exporter/badge.svg?branch=master)](https://coveralls.io/github/oieioi/redash_exporter?branch=master)\n\n# RedashExporter\n\nThis gem is inspired by [Redash Query Export Tool](https://gist.github.com/arikfr/598590356c4da18be976)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'redash_exporter'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install redash_exporter\n\n## Usage\n\nShell\n\n    $ redash_exporter --redash-url \"http://your-redash-domain.example/your-path\" --api-key=\"your_api_key\"\n\nWith destination path and to force to overwrite existed files\n\n    $ redash_exporter --redash-url \"http://your-redash-domain.example/your-path\" --api-key=\"your_api_key\" --dest=destination_directory_path --overwrite\n\nin Ruby Script\n\n```ruby\nqueries = RedashExporter::Queries.new 'https://your-redash-domain.example/your-path', 'your_api_key', 'export_path'\nqueries.fetch\nqueries.export_all\n\n# filter\nqueries\n  .reject! { |query| query['retrieved_at'].nil? }\n  .reject! { |qeury| query['retrieved_at'].to_time \u003c 3.months.ago }\n  .export_all\n\n# OR\nqueries\n  .reject { |query| query[:retrieved_at].nil? }\n  .each(\u0026:export)\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/oieioi/redash_exporter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the RedashExporter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/oieioi/redash_exporter/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foieioi%2Fredash_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foieioi%2Fredash_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foieioi%2Fredash_exporter/lists"}