5 poin oleh xguru 2020-07-05 | Belum ada komentar. | Bagikan ke WhatsApp
  • Menggunakan go-git untuk mengimplementasikan isi repo sebagai Tabel Virtual di SQLite

  • Dapat digunakan seperti gitqlite "SELECT * from commits"

  • Tabel & field:

→ 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

Belum ada komentar.

Belum ada komentar.