{"id":20031839,"url":"https://github.com/wtnabe/activerecord-simple_explain","last_synced_at":"2025-03-02T05:24:56.054Z","repository":{"id":10739446,"uuid":"12995712","full_name":"wtnabe/activerecord-simple_explain","owner":"wtnabe","description":"explain method for ActiveRecord 3.0.x and 3.1.x","archived":false,"fork":false,"pushed_at":"2013-09-22T07:10:07.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T23:28:31.573Z","etag":null,"topics":["activerecord","ruby","rubygems"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"JaneliaSciComp/msg","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtnabe.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":"2013-09-21T13:36:40.000Z","updated_at":"2017-05-08T14:31:07.000Z","dependencies_parsed_at":"2022-08-28T17:01:43.445Z","dependency_job_id":null,"html_url":"https://github.com/wtnabe/activerecord-simple_explain","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Factiverecord-simple_explain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Factiverecord-simple_explain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Factiverecord-simple_explain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Factiverecord-simple_explain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtnabe","download_url":"https://codeload.github.com/wtnabe/activerecord-simple_explain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241462773,"owners_count":19966923,"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","rubygems"],"created_at":"2024-11-13T09:34:54.341Z","updated_at":"2025-03-02T05:24:56.034Z","avatar_url":"https://github.com/wtnabe.png","language":"Ruby","readme":"# ActiveRecord::SimpleExplain\n\n## Implemented\n\n`ActiveRecord::Relation.explain()` method for ActiveRecord 3.0.x and 3.1.x and 3.2.x with SQLite\n\n## Not Implemented\n\nauto explain\n\n## Supported Versions\n\n * Ruby 1.8.7+\n * ActiveRecord 3.0.x - 3.2.x\n\n## Supported Adapters\n\n * SQLite\n * MySQL\n * PostgreSQL\n\n## Depending\n\n * [cldwalker/hirb](https://github.com/cldwalker/hirb)\n * [miaout17/hirb-unicode](https://github.com/miaout17/hirb-unicode)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'activerecord-simple_explain'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install activerecord-simple_explain\n\n## Usage\n\njust call ActiveRecord::Relation.explain()\n\nex)\n\n    Blog.joins(:comments).explain\n\non Rails console ( Rails 3.2 + SQLite Adapter )\n\n    development(main):001:0\u003e Blog.joins(:comments).explain\n       (0.1ms)  explain query plan SELECT \"blogs\".* FROM \"blogs\" INNER JOIN \"comments\" ON \"comments\".\"blog_id\" = \"blogs\".\"id\"\n    +------------------------------------------------------------------+------+-------+----------+\n    | detail                                                           | from | order | selectid |\n    +------------------------------------------------------------------+------+-------+----------+\n    | SCAN TABLE comments (~1000000 rows)                              | 1    | 0     | 0        |\n    | SEARCH TABLE blogs USING INTEGER PRIMARY KEY (rowid=?) (~1 rows) | 0    | 1     | 0        |\n    +------------------------------------------------------------------+------+-------+----------+\n    2 rows in set\n    =\u003e nil\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Factiverecord-simple_explain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtnabe%2Factiverecord-simple_explain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Factiverecord-simple_explain/lists"}