MyGit

AmrDeveloper/GQL

Fork: 90 Star: 3311 (更新于 2024-12-08 16:30:03)

license: MIT

Language: Rust .

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

最后发布版本: 0.26.0 ( 2024-08-17 14:09:13)

官方网址 GitHub网址

GitQL - Git Query Language

Crates.io Deps Release Docs GitHub release GitHub issues GitHub GitHub all releases

GitQL is a tool that built using the GitQL SDk to perform SQL like query on your local .git files

GitQL SDK is an in memory query engine implemented from scratch as a set of libraries that allow you to perform high customization in types, schema, data provider, operators and functions, so you can build your own tool to run SQL like query on any kind of data.

animated


Samples

Note that all Keywords in GitQL are case-insensitive, similar to SQL.

SELECT 1
SELECT 1 + 2
SELECT LEN("Git Query Language")
SELECT "One" IN ("One", "Two", "Three")
SELECT "Git Query Language" LIKE "%Query%"

SET @arr = [1, 2, 3];
SELECT [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
SELECT @arr[1], @arr[2], @arr[3], ARRAY_LENGTH(@arr);
SELECT @arr[1:2], @arr[2:], @arr[:2];

SELECT DISTINCT title AS tt FROM commits
SELECT author_name, COUNT(author_name) AS commit_num FROM commits GROUP BY author_name, author_email ORDER BY commit_num DESC LIMIT 10
SELECT commit_count FROM branches WHERE commit_count BETWEEN 0 AND 10

SELECT * FROM refs WHERE type = "branch"
SELECT * FROM refs ORDER BY type

SELECT * FROM commits
SELECT author_name, author_email FROM commits
SELECT author_name, author_email FROM commits ORDER BY author_name DESC, author_email ASC
SELECT author_name, author_email FROM commits WHERE author_email LIKE "%gmail%" ORDER BY author_name
SELECT * FROM commits WHERE LOWER(author_name) = "amrdeveloper"
SELECT author_name FROM commits GROUP By author_name
SELECT author_name FROM commits GROUP By author_name having author_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

GitQL Documentation

GitQL SDK Documentations


Tools built using GitQL SDK

  • LLQL: Tool to run SQL query on LLVM IR/BC and perform Pattern matching on instructions.
  • ClangQL: Tool to run SQL query on C/C++ Source code files.
  • FileQL Tool to run SQL query on file systems and extract metadata.
  • PyQL Tool to run SQL query on Python Source code files.

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.

最近版本更新:(数据更新于 2024-08-27 23:44:37)

2024-08-17 14:09:13 0.26.0

2024-07-09 19:41:37 0.25.0

2024-06-21 20:46:08 0.24.0

2024-06-13 21:23:54 0.23.0

2024-06-13 02:00:51 0.22.1

2024-06-13 01:34:41 0.22.0

2024-06-07 19:18:37 0.21.0

2024-05-31 17:05:50 0.20.0

2024-05-19 13:32:14 0.19.1

2024-05-18 19:13:10 0.19.0

主题(topics):

database, engine, git, gitql, gitql-sdk, gql, interpreter, memory-database, rust, sql

AmrDeveloper/GQL同语言 Rust最近更新仓库

2024-12-22 08:48:41 lapce/lapce

2024-12-19 20:41:09 tw93/Pake

2024-12-19 19:31:32 dashpay/platform

2024-12-18 10:31:25 DioxusLabs/dioxus

2024-12-17 17:18:34 lanyeeee/jmcomic-downloader

2024-12-16 23:19:51 meilisearch/meilisearch