gitqlite - รัน SQL query กับ Git Repo
(github.com)-
ใช้ go-git เพื่อนำเนื้อหาของ Repo มาใช้งานเป็น Virtual Table ของ SQLite
-
สามารถใช้งานแบบ
gitqlite "SELECT * from commits"ได้ -
ตารางและฟิลด์ :
→ 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
ยังไม่มีความคิดเห็น