GitQL is a revolutionary query language designed for seamless interaction with your .git files. With its intuitive syntax and familiar SQL-like functionality—including grouping, ordering, and aggregation—GitQL empowers developers to effortlessly analyze their repositories. Dive deep into your Git history and make informed decisions with powerful, customizable queries.
GitQL is a powerful Git Query Language that allows developers to execute SQL-like queries on .git files, leveraging an extensive array of SQL features including grouping, ordering, and aggregation functions. Whether you're looking to analyze commit history, retrieve branch information, or investigate tags, GitQL provides a comprehensive toolset to enhance your Git data exploration efforts.
Features
- Easy-to-use Syntax: GitQL's syntax is inspired by SQL, making it accessible for anyone familiar with database querying. Keywords are case-insensitive for your convenience.
- Versatile Querying: Perform queries such as:
SELECT author_name, COUNT(author_name) AS commit_num FROM commits GROUP BY author_name ORDER BY commit_num DESC LIMIT 10;
- Customizable SDK: Built on the GitQL SDK, this tool offers an in-memory query engine that can be deeply customized for types, schemas, data providers, operators, and functions. This allows developers to create tailored tools for querying various data types.
Examples
Here is a glimpse of the types of queries you can execute with GitQL:
SELECT * FROM branches WHERE is_head = true;
SELECT author_name FROM commits WHERE LOWER(author_name) = 'amrdeveloper';
SELECT name, LEN(name) FROM branches;
Comprehensive Documentation
For developers looking to unleash the full potential of GitQL, comprehensive documentation is available:
- Full Documentation
- GitQL SDK Documentation
- Explore customization options for various components and functionalities.
Built with GitQL SDK
Discover tools built using the GitQL SDK to further extend your querying capabilities:
- LLQL: For SQL queries on LLVM IR/BC.
- ClangQL: Run SQL queries on C/C++ source files.
- FileQL: SQL querying on file systems to extract metadata.
Embrace the power of Git with GitQL and make your data querying efficient and intuitive!