• Stars
    star
    2,919
  • Rank 14,956 (Top 0.4 %)
  • Language
    Rust
  • License
    MIT License
  • Created 12 months ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

GQL - Git Query Language


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 name, count(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DES LIMIT 10
SELECT commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10

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

SELECT * FROM commits
SELECT name, email FROM commits
SELECT name, email FROM commits ORDER BY name DES
SELECT name, email FROM commits WHERE name contains "gmail" ORDER BY name
SELECT * FROM commits WHERE name.lower = "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 ishead = "true"
SELECT * FROM branches WHERE name ends_with "master"
SELECT * FROM branches WHERE name contains "origin"

SELECT * FROM tags
SELECT * FROM tags OFFSET 1 LIMIT 1

Documentation:


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.

More Repositories

1

CodeView

Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
Java
359
star
2

TreeView

Multi roots TreeView 🌴 implementation for Android Platform with a lot of options and customization
Java
166
star
3

LinkHub

LinkHub is a simple and effective link management application that can help you to easily manage your app with no ads!
Kotlin
146
star
4

ReactButton

Android Library to make it easy to add ReactButton feature in your app with Multi Reactions like Facebook or Linkedin, you can add many reactions as you want, you can also split them into a number of columns, and also customize the colours and text for each reaction
Java
111
star
5

EasyAdapter

Android Annotation Processing Library to generate your adapters only with Annotations on your model, support working with Kapt and KSP Processors
Kotlin
79
star
6

Amun

A Statically typed, compiled general purpose low level programming language built using C++ and LLVM Infrastructure framework designed to be simple and fast
C++
58
star
7

LottieDialog

Android Library to create Lottie animation view dialog easily with a lot of customization
Java
52
star
8

Lineeditor

A new cross platform general prupose Line editor implementation designed with the goal to be flexible and customizable
Rust
42
star
9

Astro

Free and Open Source Java IDE Side Project that can compile and run java code and other features for editor like auto complate and auto import for packages
Java
32
star
10

AndroidResourceManager

Android Resource Manager application to manage and analyse your app resources with many features like image resize, Color, Dimens and code Analysis
Java
29
star
11

FileQL

A tool that allow you to run SQL-like query on local files instead of database files using the GitQL SDK.
Rust
28
star
12

Turtle

Turtle Graphics 🐢 implementation for Android Platform with Code Editor, Preview Screen and packages
Kotlin
27
star
13

Sparkler

Cross platform API request builder to make HTTP with different methods and WebSocket connection and you can send and receive data
Java
22
star
14

Tank

Dynamic type Object oriented and scripting language written in Java
Java
21
star
15

Askme

Social media app to ask and answer user questions and interact with users
Kotlin
21
star
16

Android

Android Apps from courses and side projects
Java
16
star
17

SnapMacro

Free and Open source Cross-platform bot creator with a new scripting language called snap to interact with the mouse, keyboard, and screen using Snap scripting language
Java
13
star
18

FastMind

Online Android Real-time Quiz Game with nodejs and socket.io on the backend
Java
11
star
19

Echo

Compiler And Virtual Machine for Lox Programming Language written in C
C
6
star
20

FlutterQuizGame

Flutter quiz app for Flutter Create challenge 2019
Dart
5
star
21

Kong

Kong is an implementation of the Monkey interpreter in Java 8 from The Writing An Interpreter In Go books
Java
5
star
22

yamler

YAML modification program to parse, generate and modify yaml code and comments
Dart
4
star
23

MenuApp

Menu Simple Applicaion for Restaurant
Java
4
star
24

PascalWCI

Pascal Interpreter and Debugger Project written in Java from Writing Compilers and Interpreters A Software Engineering Approach, Third Edition book
Java
4
star
25

TaskTimer

Android Application to find how many time your project take and run any number of time counters in the same thread by observer pattern
Java
4
star
26

Monkey

Monkey programming language 🐒 project from "Writing An Interpreter In Go" and "Writing A Compiler In Go" Books
Go
4
star
27

Done

Compiler to generate C Code and executable with many features and syntax sugger
C++
4
star
28

JavaFX

JavaFX Desktop Side Projects
Java
3
star
29

DataStructuresAndAlgorithms

Data Structures And Algorithms Implementation
Java
3
star
30

Validera

NodeJS object validation to check type and value with multi conditions
JavaScript
2
star
31

Nand2Tetris

Start from NAND gate to build a Computer that can run the Tetris game
Hack
2
star
32

bee-lang

Bee is interpreted programming language for LangJam 2021 Created in less than 48h based on first-class comments theme
Java
2
star
33

checkstyle-reports

Static web pages for checkstyle pull request reports
HTML
2
star
34

GitEcho

Github Clone App to seach with pagination
Java
2
star
35

CurrencyExchange

Android App is written in Kotlin with MVVM Arch with RxJava, Dagger2, LeackCanary libraries to get rates for more than 180 currency and draw Chart for these rates
Kotlin
2
star