gitqlite - Git Repo'suna SQL sorguları çalıştırma
(github.com)-
go-gitkullanarak repo içeriğini SQLite'ın Virtual Table'ı olarak uygular -
gitqlite "SELECT * from commits"gibi kullanılabilir -
Tablolar ve alanlar:
→ commits : id, message, summary, author, commiter, parent_id..
→ files : commit_id, name, type, contents..
→ refs : name, type, hash
SELECT count(*) AS commits, SUM(additions) AS additions, SUM(deletions) AS deletions, author_email FROM commits GROUP BY author_email ORDER BY commits
Henüz yorum yok.