{"id":21415528,"url":"https://github.com/ainame/explain_parser","last_synced_at":"2025-07-14T04:31:50.102Z","repository":{"id":52414162,"uuid":"22760073","full_name":"ainame/explain_parser","owner":"ainame","description":"Parser for result of EXPLAIN of MySQL(inspired from http://search.cpan.org/~moznion/MySQL-Explain-Parser-0.02/lib/MySQL/Explain/Parser.pm)","archived":false,"fork":false,"pushed_at":"2021-04-29T21:19:31.000Z","size":11,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T19:26:56.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ainame.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":"2014-08-08T14:17:53.000Z","updated_at":"2018-06-15T14:02:19.000Z","dependencies_parsed_at":"2022-09-08T21:51:07.472Z","dependency_job_id":null,"html_url":"https://github.com/ainame/explain_parser","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainame%2Fexplain_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainame%2Fexplain_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainame%2Fexplain_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ainame%2Fexplain_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ainame","download_url":"https://codeload.github.com/ainame/explain_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225950629,"owners_count":17550303,"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-22T18:49:45.150Z","updated_at":"2024-11-22T18:49:45.755Z","avatar_url":"https://github.com/ainame.png","language":"Ruby","readme":"# ExplainParser\n\nParser for result of EXPLAIN of MySQL(inspired from http://search.cpan.org/~moznion/MySQL-Explain-Parser-0.02/lib/MySQL/Explain/Parser.pm)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'explain_parser'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install explain_parser\n\n## Usage\n\n```ruby\ninput \u003c\u003c-EOS\n+----+-------------+-------+------+---------------+------+---------+------+------+----------------------------------------------------------+\n| id | select_type | table | type | possible_keys | key  | key_len | ref  | rows | Extra                                                    |\n+----+-------------+-------+------+---------------+------+---------+------+------+----------------------------------------------------------+\n|  1 | SIMPLE      | users | ALL  | NULL          | NULL | NULL    | NULL |  155 | Using where; Using index Using temporary; Using filesort |\n+----+-------------+-------+------+---------------+------+---------+------+------+----------------------------------------------------------+\n1 row in set (0.00 sec)\nEOS\n\nexplains = ExplainParser.call(input) # return result as Array\n\nexplain = explains.first\n\nexplain.id #=\u003e 1\nexplain.select_type #=\u003e 'SIMPLE'\n\n...\n\nexplain.rows #=\u003e 155\nexplain.extra #=\u003e 'Using where; Using index Using temporary; Using filesort'\nexplain.using_filesort? #=\u003e true\nexplain.using_where? #=\u003e true\nexplain.using_temporary? #=\u003e true\nexplain.using_index? #=\u003e true\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/explain_parser/fork )\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 a new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fainame%2Fexplain_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fainame%2Fexplain_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fainame%2Fexplain_parser/lists"}