{"id":14969819,"url":"https://github.com/yhirano55/activerecord-explainer","last_synced_at":"2025-10-03T23:31:00.973Z","repository":{"id":53506049,"uuid":"184827307","full_name":"yhirano55/activerecord-explainer","owner":"yhirano55","description":"This gem automatically logs SQL EXPLAIN of every queries","archived":false,"fork":false,"pushed_at":"2021-03-27T12:18:20.000Z","size":350,"stargazers_count":49,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T01:14:37.227Z","etag":null,"topics":["activerecord","ruby-on-rails","rubygems","sql"],"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/yhirano55.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-03T22:26:16.000Z","updated_at":"2023-07-24T06:47:06.000Z","dependencies_parsed_at":"2022-09-01T09:02:44.622Z","dependency_job_id":null,"html_url":"https://github.com/yhirano55/activerecord-explainer","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirano55%2Factiverecord-explainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirano55%2Factiverecord-explainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirano55%2Factiverecord-explainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirano55%2Factiverecord-explainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhirano55","download_url":"https://codeload.github.com/yhirano55/activerecord-explainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235199327,"owners_count":18951517,"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":["activerecord","ruby-on-rails","rubygems","sql"],"created_at":"2024-09-24T13:42:26.728Z","updated_at":"2025-10-03T23:30:55.690Z","avatar_url":"https://github.com/yhirano55.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveRecord::Explainer\n\nThis gem automatically logs `SQL EXPLAIN` of every queries.\n\nYou can check naturally every `SQL EXPLAIN` from development log, without :hand: executions.\n\n## Usage\n\nIf you use Rails, it's no configuration, and you can logs SQL EXPLAIN of every queries.\n\n![](https://github.com/yhirano55/activerecord-explainer/blob/master/images/v0.2.0.png?raw=true)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'activerecord-explainer', group: :development\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install activerecord-explainer\n\n## How it work?\n\n- This gem subscribes `sql.active_record` event provided by the [Active Support instrumentation API](https://guides.rubyonrails.org/active_support_instrumentation.html).\n- Subscriber handles payload, and execute EXPLAIN from `ActiveRecord::Base`.\n\nPlease check the [implementation](https://github.com/yhirano55/activerecord-explainer/blob/master/lib/activerecord/explainer/subscriber.rb), if you interested in.\n\n## License\n\n[MIT License](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhirano55%2Factiverecord-explainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhirano55%2Factiverecord-explainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhirano55%2Factiverecord-explainer/lists"}