https://github.com/AmrDeveloper/GQL Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} AmrDeveloper / GQL Public * * Notifications * Fork 17 * Star 961 Git Query language is a SQL like language to perform queries on .git files with supports of most of SQL features such as grouping, ordering and aggregations functions amrdeveloper.github.io/gql/ License MIT license 961 stars 17 forks Activity Star Notifications * Code * Issues 7 * Pull requests 2 * Discussions * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights AmrDeveloper/GQL This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 2 branches 12 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/A] Use Git or checkout with SVN using the web URL. [gh repo clone AmrDev] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @AmrDeveloper AmrDeveloper fix: Code format ... 987e9d9 Dec 2, 2023 fix: Code format 987e9d9 Git stats * 295 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github Issue #36: Fix Clippy comments and setup CI November 11, 2023 17:00 .vscode Setup recommendtation file for vscode June 16, 2023 15:25 crates fix: Code format December 2, 2023 16:04 docs feat: Implement ASIGN function November 28, 2023 21:18 media Update the demo gif November 2, 2023 22:14 scripts Add Github action config for cross compilation release June 15, 2023 21:13 src feat: Support user defined global variables December 2, 2023 16:02 .gitignore GQL First commit June 2, 2023 18:20 CHANGELOG.md Update Changelog file for version 0.9.0 November 25, 2023 15:57 CODE_OF_CONDUCT.md Add license, contributing, code of conduct files June 8, 2023 09:45 CONTRIBUTING.md Add license, contributing, code of conduct files June 8, 2023 09:45 Cargo.lock Issue #44: Add support for piped input December 1, 2023 14:37 Cargo.toml Issue #44: Add support for piped input December 1, 2023 14:37 LICENSE Add license, contributing, code of conduct files June 8, 2023 09:45 README.md feat: Support Ordering using multi arguments November 16, 2023 09:47 RELEASING.md Update changelog file for version 0.2.0 June 27, 2023 13:06 mkdocs.yml feat: Support user defined global variables December 2, 2023 16:02 View code GQL - Git Query Language Samples Documentation: License README.md GQL - Git Query Language [gql_logo] Crates.io Deps Release Docs GitHub release GitHub issues GitHub GitHub all releases GQL is a query language with a syntax very similar to SQL with a tiny engine to perform queries on .git files instance of database files, the engine executes the query on the fly without the need to create database files or convert .git files into any other format, note that all Keywords in GQL are case-insensitive similar to SQL. animated --------------------------------------------------------------------- Samples SELECT 1 SELECT 1 + 2 SELECT LEN("Git Query Language") SELECT "One" IN ("One", "Two", "Three") SELECT "Git Query Language" LIKE "%Query%" SELECT DISTINCT title AS tt message FROM commits SELECT name, COUNT(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DESC LIMIT 10 SELECT commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10 SELECT * FROM refs WHERE type = "branch" SELECT * FROM refs ORDER BY type SELECT * FROM commits SELECT name, email FROM commits SELECT name, email FROM commits ORDER BY name DESC, email ASC SELECT name, email FROM commits WHERE name LIKE "%gmail%" ORDER BY name SELECT * FROM commits WHERE LOWER(name) = "amrdeveloper" SELECT name FROM commits GROUP By name SELECT name FROM commits GROUP By name having name = "AmrDeveloper" SELECT * FROM branches SELECT * FROM branches WHERE is_head = true SELECT name, LEN(name) FROM branches SELECT * FROM tags SELECT * FROM tags OFFSET 1 LIMIT 1 --------------------------------------------------------------------- Documentation: * Full Documentation * Install or Build * Tables * Types * Statements * Expressions * Transformations * Aggregations * As Libraries --------------------------------------------------------------------- License MIT License Copyright (c) 2023 Amr Hesham Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. About Git Query language is a SQL like language to perform queries on .git files with supports of most of SQL features such as grouping, ordering and aggregations functions amrdeveloper.github.io/GQL/ Topics git rust sql database interpreter engine gql gitql Resources Readme License MIT license Code of conduct Code of conduct Activity Stars 961 stars Watchers 6 watching Forks 17 forks Report repository Releases 12 0.9.0 Latest Nov 25, 2023 + 11 releases Sponsor this project Sponsor Learn more about GitHub Sponsors Packages 0 No packages published Contributors 5 * @AmrDeveloper * @Lilit0x * @tbro * @se-omarayman * @Byron Languages * Rust 99.5% * Other 0.5% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact You can't perform that action at this time.