{"id":13540119,"url":"https://github.com/cookiey/yearning","last_synced_at":"2025-05-12T13:10:29.807Z","repository":{"id":37432570,"uuid":"107417113","full_name":"cookieY/Yearning","owner":"cookieY","description":"🐳 A most popular sql audit platform for mysql ","archived":false,"fork":false,"pushed_at":"2025-05-12T06:57:19.000Z","size":447833,"stargazers_count":8661,"open_issues_count":144,"forks_count":2005,"subscribers_count":228,"default_branch":"next","last_synced_at":"2025-05-12T13:09:46.305Z","etag":null,"topics":["devops","go","golang","mysql","mysql-web-sql","sql","sql-audit","yearning"],"latest_commit_sha":null,"homepage":"http://next.yearning.io/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cookieY.png","metadata":{"files":{"readme":"README.ja-JP.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://next.yearning.io/sponsor.html"]}},"created_at":"2017-10-18T14:08:50.000Z","updated_at":"2025-05-11T12:59:44.000Z","dependencies_parsed_at":"2023-10-20T19:01:50.178Z","dependency_job_id":"07a55102-19e4-407c-a9a2-5ec200f277d4","html_url":"https://github.com/cookieY/Yearning","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookieY%2FYearning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookieY%2FYearning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookieY%2FYearning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookieY%2FYearning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cookieY","download_url":"https://codeload.github.com/cookieY/Yearning/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253745163,"owners_count":21957317,"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":["devops","go","golang","mysql","mysql-web-sql","sql","sql-audit","yearning"],"created_at":"2024-08-01T09:01:40.892Z","updated_at":"2025-05-12T13:10:29.777Z","avatar_url":"https://github.com/cookieY.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1 style=\"border-bottom: none\"\u003e\n    \u003cb\u003e\u003ca href=\"https://next.yearning.io\"\u003eYearning\u003c/a\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003c/h1\u003e\n\u003c/div\u003e\n\nDBAや開発者向けに設計された、シームレスなSQL検出とクエリ監査を提供する強力なローカルデプロイプラットフォーム。プライバシーと効率に焦点を当て、MYSQL監査のための直感的で安全な環境を提供します。\n\n---\n[![OSCS Status](https://www.oscs1024.com/platform/badge/cookieY/Yearning.svg?size=small)](https://www.murphysec.com/dr/nDuoncnUbuFMdrZsh7)\n![Platform Support](https://img.shields.io/badge/-x86_x64%20ARM%20Supports%20%E2%86%92-rgb(84,56,255)?style=flat-square\u0026logoColor=white\u0026logo=linux)\n[![][github-license-shield]][github-license-link]\n![GitHub top language](https://img.shields.io/github/languages/top/cookieY/Yearning?color=369eff\u0026label=golang\u0026labelColor=black\u0026logo=golang\u0026logoColor=white\u0026style=flat-square)\n[![][github-forks-shield]][github-forks-link]\n[![][github-stars-shield]][github-stars-link]\n[![Downloads](https://img.shields.io/github/downloads/cookieY/Yearning/total?labelColor=black\u0026logo=download\u0026logoColor=white\u0026style=flat-square)](https://github.com/cookieY/Yearning/releases/latest)\n[\u003cimg src=\"https://api.gitsponsors.com/api/badge/img?id=107417113\" height=\"20\"\u003e](https://api.gitsponsors.com/api/badge/link?p=d/F0Db/twPG+6OzJf1gggUy+f6M3CRCL2PGmI+Q/hI80KtxSQKK5f3Ec8xLanykph/60I77/SxLEkbof7Gbcetd284mOutYXz7R2BlAhNuF7GdZLrTrC7oVSTxkC9cX3WzhY1pHrAeakGpuNLaoovA==)\n\n[English](README.md) | [简体中文](README.zh-CN.md) | 日本語\n\n## ✨ 機能\n\n- **AIアシスタント**: AIアシスタントはリアルタイムのSQL最適化提案を提供し、SQLのパフォーマンスを向上させます。また、テキストからSQLへの変換をサポートし、自然言語を入力して最適化されたSQL文を受け取ることができます。\n  \n- **SQL監査**: 承認ワークフローと自動構文チェックを備えたSQL監査チケットを作成します。SQL文の正確性、安全性、コンプライアンスを検証します。DDL/DML操作のためのロールバック文が自動生成され、トレーサビリティのための包括的な履歴ログが提供されます。\n\n- **クエリ監査**: ユーザークエリを監査し、データソースとデータベースを制限し、機密フィールドを匿名化します。クエリ記録は将来の参照のために保存されます。\n\n- **チェックルール**: 自動構文チェッカーは、ほとんどの自動チェックシナリオに適した広範なチェックルールをサポートします。\n\n- **プライバシー重視**: Yearningはローカルにデプロイ可能なオープンソースソリューションであり、データベースとSQL文のセキュリティを確保します。暗号化メカニズムを含み、機密データを保護し、未承認のアクセスが発生してもデータが安全であることを保証します。\n\n- **RBAC（ロールベースアクセス制御）**: 特定の権限を持つロールを作成および管理し、ユーザーロールに基づいてクエリワークオーダー、監査機能、およびその他の機密操作へのアクセスを制限します。\n\n\u003e \\[!TIP]\n\u003e 詳細な情報については、[Yearningガイド](https://next.yearning.io)をご覧ください。\n\n## ⚙️ インストール\n\n[最新リリース](https://github.com/cookieY/Yearning/releases/latest)をダウンロードして解凍します。続行する前に、`./config.toml`が設定されていることを確認してください。\n\n### 手動インストール\n\n```bash\n## データベースを初期化\n./Yearning install\n\n## Yearningを起動\n./Yearning run\n\n## ヘルプ\n./Yearning --help\n```\n\n### 🚀 Dockerでのデプロイ\n[![][docker-release-shield]][docker-release-link]\n[![][docker-size-shield]][docker-size-link]\n[![][docker-pulls-shield]][docker-pulls-link]\n```bash\n## データベースを初期化\ndocker run --rm -it -p8000:8000 -e SECRET_KEY=$SECRET_KEY -e MYSQL_USER=$MYSQL_USER -e MYSQL_ADDR=$MYSQL_ADDR -e MYSQL_PASSWORD=$MYSQL_PASSWORD -e MYSQL_DB=$Yearning_DB -e Y_LANG=ja_JP yeelabs/yearning \"/opt/Yearning install\"\n\n## Yearningを起動\ndocker run -d -it -p8000:8000 -e SECRET_KEY=$SECRET_KEY -e MYSQL_USER=$MYSQL_USER -e MYSQL_ADDR=$MYSQL_ADDR -e MYSQL_PASSWORD=$MYSQL_PASSWORD -e MYSQL_DB=$Yearning_DB -e Y_LANG=ja_JP yeelabs/yearning\n```\n## 🤖 AIアシスタント\n\nAIアシスタントは、大規模な言語モデルを活用してSQLの最適化提案とテキストからSQLへの変換を提供します。デフォルトまたはカスタムプロンプトを使用して、AIアシスタントは文を最適化し、自然言語入力をSQLクエリに変換することでSQLのパフォーマンスを向上させます。\n\n![テキストからSQL](img/text2sql.jpg)\n\n## 🔖 自動SQLチェッカー\n\n自動SQLチェッカーは、事前定義されたルールと構文に基づいてSQL文を評価します。特定のコーディング標準、ベストプラクティス、およびセキュリティ要件に準拠していることを確認し、堅牢な検証層を提供します。\n\n![SQL監査](img/audit.png)\n\n## 💡 SQL構文ハイライトと自動補完\n\nSQL構文ハイライトと自動補完機能でクエリの作成効率を向上させます。これらの機能は、SQLクエリの異なるコンポーネント（キーワード、テーブル名、列名、演算子など）を視覚的に区別するのに役立ち、クエリ構造の読み取りと理解を容易にします。\n\n![SQLクエリ](img/query.png)\n\n## ⏺️ オーダー/クエリ記録\n\nプラットフォームは、ユーザーのオーダーおよびクエリ文の監査をサポートします。この機能により、データソース、データベース、および機密フィールドの処理を含むすべてのクエリ操作を追跡および記録し、規制に準拠し、クエリ履歴のトレーサビリティを提供します。\n\n![オーダー/クエリ記録](img/record.png)\n\nこれらの主要機能に焦点を当てることで、Yearningはユーザーエクスペリエンスを向上させ、SQLのパフォーマンスを最適化し、データベース操作の強力なコンプライアンスとトレーサビリティを確保します。\n\n## 🛠️ 推奨ツール\n\n- [Spug - オープンソースの軽量自動化運用プラットフォーム](https://github.com/openspug/spug)\n\n## ☎️ 連絡先\n\nお問い合わせは、以下のメールアドレスまでご連絡ください：henry@yearning.io\n\n## 📋 ライセンス\n\nYearningはAGPLライセンスの下でライセンスされています。詳細については、[LICENSE](LICENSE)をご覧ください。\n\n2024 © Henry Yee\n\n---\n\nYearningを使用して、SQL監査と最適化のためのスムーズで安全かつ効率的なアプローチを体験してください。\n\n\n[docker-pulls-link]: https://hub.docker.com/r/yeelabs/yearning\n[docker-pulls-shield]: https://img.shields.io/docker/pulls/yeelabs/yearning?color=45cc11\u0026labelColor=black\u0026style=flat-square\n[docker-release-link]: https://hub.docker.com/r/yeelabs/yearning\n[docker-release-shield]: https://img.shields.io/docker/v/yeelabs/yearning?color=369eff\u0026label=docker\u0026labelColor=black\u0026logo=docker\u0026logoColor=white\u0026style=flat-square\n[docker-size-link]: https://hub.docker.com/r/yeelabs/yearning\n[docker-size-shield]: https://img.shields.io/docker/image-size/yeelabs/yearning?color=369eff\u0026labelColor=black\u0026style=flat-square\n[github-forks-shield]: https://img.shields.io/github/forks/cookieY/Yearning?color=8ae8ff\u0026labelColor=black\u0026style=flat-square\n[github-forks-link]: https://github.com/cookieY/Yearning/network/members\n[github-stars-link]: https://github.com/cookieY/Yearning/network/stargazers\n[github-stars-shield]: https://img.shields.io/github/stars/cookieY/Yearning?color=ffcb47\u0026labelColor=black\u0026style=flat-square\n[github-license-link]: https://github.com/cookieY/Yearning/blob/main/LICENSE\n[github-license-shield]: https://img.shields.io/badge/AGPL%203.0-white?labelColor=black\u0026style=flat-square\n","funding_links":["https://next.yearning.io/sponsor.html"],"categories":["\u003ca id=\"969212c047f97652ceb9c789e4d8dae5\"\u003e\u003c/a\u003e数据库\u0026\u0026SQL攻击\u0026\u0026SQL注入"],"sub_categories":["\u003ca id=\"3157bf5ee97c32454d99fd4a9fa3f04a\"\u003e\u003c/a\u003eSQL"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookiey%2Fyearning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcookiey%2Fyearning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookiey%2Fyearning/lists"}