Gitbase, SQL interface to Git repositories
summary
Gitbase is a read-only SQL engine that exposes Git repositories over the MySQL protocol compatible interface and lets clients run joins and GROUP BY across thousands of repos without importing data. It returns one head commit per repo, counts commits/blobs, and queries code structure using UAST + XPath to find function declarations. Internals use go-git, Volcano-style iterators, aggressive in-memory caching and pack-file+offset indexes that bypass Git index lookups, yielding orders-of-magnitude speedups for many cross-repo queries.
AI-written summary · about
