{"id":26833111,"url":"https://github.com/matsuu/slowquery2tsv","last_synced_at":"2026-02-25T16:03:01.259Z","repository":{"id":47593336,"uuid":"393635145","full_name":"matsuu/slowquery2tsv","owner":"matsuu","description":"MySQLのパフォーマンススキーマやPostgreSQLのpg_stat_statementsの内容を整形した上でTSV形式に出力するツール","archived":false,"fork":false,"pushed_at":"2021-08-22T23:48:49.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T20:02:33.670Z","etag":null,"topics":["go","mysql","postgresql"],"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/matsuu.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":"2021-08-07T09:12:35.000Z","updated_at":"2024-02-16T14:46:21.000Z","dependencies_parsed_at":"2022-08-27T00:00:40.789Z","dependency_job_id":null,"html_url":"https://github.com/matsuu/slowquery2tsv","commit_stats":null,"previous_names":["matsuu/mysql-ps2tsv"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matsuu/slowquery2tsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsuu%2Fslowquery2tsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsuu%2Fslowquery2tsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsuu%2Fslowquery2tsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsuu%2Fslowquery2tsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsuu","download_url":"https://codeload.github.com/matsuu/slowquery2tsv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsuu%2Fslowquery2tsv/sbom","scorecard":{"id":625345,"data":{"date":"2025-08-11","repo":{"name":"github.com/matsuu/slowquery2tsv","commit":"3566757605efb77f065e7acd440f298cd689aa17"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/branches.yaml:1","Warn: no topLevel permission defined: .github/workflows/tags.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/branches.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/matsuu/slowquery2tsv/branches.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/branches.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/matsuu/slowquery2tsv/branches.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/branches.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/matsuu/slowquery2tsv/branches.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tags.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/matsuu/slowquery2tsv/tags.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tags.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/matsuu/slowquery2tsv/tags.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tags.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/matsuu/slowquery2tsv/tags.yaml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/matsuu/slowquery2tsv/releases/48249791","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/matsuu/slowquery2tsv/releases/48249791"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T06:15:13.417Z","repository_id":47593336,"created_at":"2025-08-21T06:15:13.418Z","updated_at":"2025-08-21T06:15:13.418Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274982920,"owners_count":25385329,"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-09-13T02:00:10.085Z","response_time":70,"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":["go","mysql","postgresql"],"created_at":"2025-03-30T15:28:01.068Z","updated_at":"2026-02-25T16:02:56.208Z","avatar_url":"https://github.com/matsuu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slowquery2tsv\n\n## Description\n\nMySQLの `performance_schema` やPostgreSQLの `pg_stat_statements` の内容を整形した上でTSV形式で出力するツール\n\n## Install\n\n```\n# \u003c go-1.16\ngo get -u github.com/matsuu/slowquery2tsv\n\n# \u003e= go-1.16\ngo install github.com/matsuu/slowquery2tsv@latest\n```\n\n## Prerequisite\n\nMySQLの場合 `performance_schema` を有効にする。\n\n```\nperformance_schema = ON\nperformance_schema_max_sql_text_length = 1024\n```\n\nPostgreSQLは `pg_stat_statements` を有効にする。\n\n```\nshared_preload_libraries = 'pg_stat_statements'\npg_stat_statements.max = 1000\npg_stat_statements.track = top\npg_stat_statements.save = on\ntrack_activity_query_size = 1024\n```\n\n```\nCREATE EXTENSION pg_stat_statements;\n```\n\n## Usage\n\n```\nslowquery2tsv -u \u003cusername\u003e -p \u003cpassword\u003e\nslowquery2tsv -h \u003chost\u003e -u \u003cusername\u003e -p \u003cpassword\u003e\n```\n\nその他オプションは `--help` 参照。\n\n## Tips\n\n* MySQL\n    * queryが途中で途切れる場合は [performance\\_schema\\_max\\_sql\\_text\\_length](https://dev.mysql.com/doc/refman/8.0/en/performance-schema-system-variables.html#sysvar_performance_schema_max_sql_text_length) を引き上げてください\n    * リセットは以下で可能です\n        ```\n        CALL sys.ps_truncate_all_tables(FALSE);\n        ```\n* PostgreSQL\n    * queryが途中で途切れる場合は [track\\_activity\\_query\\_size](https://www.postgresql.jp/document/current/html/runtime-config-statistics.html) を引き上げてください\n    * リセットは以下で可能です\n        ```\n        SELECT pg_stat_statements_reset();\n        ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsuu%2Fslowquery2tsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsuu%2Fslowquery2tsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsuu%2Fslowquery2tsv/lists"}