gitqlite - GitリポジトリにSQLクエリを実行
(github.com)<p>- go-git を使ってRepoの内容をSQLiteのVirtual Tableとして実装 <br />
- `gitqlite "SELECT * from commits"` のように使用可能<br />
- テーブルとフィールド : <br />
→ commits : id, message, summary, author, commiter, parent_id..<br />
→ files : commit_id, name, type, contents.. <br />
→ refs : name, type, hash<br />
- `SELECT count(*) AS commits, SUM(additions) AS additions, SUM(deletions) AS deletions, author_email FROM commits GROUP BY author_email ORDER BY commits`</p>
まだコメントはありません。