gitqlite - Truy vấn SQL trên Git Repo
(github.com)<p>- Triển khai nội dung của repo thành Virtual Table của SQLite bằng `go-git` <br />
- Có thể dùng như `gitqlite "SELECT * from commits"`<br />
- Bảng & trường: <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>
Chưa có bình luận nào.