gitbase, is a SQL database interface to Git repositories.
It can be used to perform SQL queries about the Git history and about the Universal AST of the code itself. gitbase is being built to work on top of any number of git repositories.
gitbase implements the MySQL wire protocol, it can be accessed using any MySQL client or library from any language.
src-d/go-mysql-server is the SQL engine implementation used by gitbase.
The project is currently in alpha stage, meaning it's still lacking performance in a number of cases but we are working hard on getting a performant system able to process thousands of repositories in a single node. Stay tuned!
You can see some query examples in gitbase documentation.
gitbase was born to ease the analysis of git repositories and its source code.
Also, making it MySQL compatible, we provide the maximum compatibility between languages and existing tools.
As a single binary allows use it as a standalone service. The service is able to process local repositories or integrate with existing tools and frameworks (e.g. spark) to make source code analysis on the large scale.
From here, you can directly go to getting started.
Apache License Version 2.0, see LICENSE