From 0f3429c21e776bdb1a214e39722093f3b2361041 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 30 Dec 2024 10:18:08 +0100 Subject: [PATCH] Update Gitql and Gitql SDK crates versions --- CHANGELOG.md | 14 ++++++++++++++ Cargo.lock | 14 +++++++------- Cargo.toml | 14 +++++++------- crates/gitql-ast/Cargo.toml | 2 +- crates/gitql-cli/Cargo.toml | 8 ++++---- crates/gitql-core/Cargo.toml | 4 ++-- crates/gitql-engine/Cargo.toml | 6 +++--- crates/gitql-parser/Cargo.toml | 6 +++--- crates/gitql-std/Cargo.toml | 6 +++--- 9 files changed, 44 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b5370..03a61ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## Version 0.34.0 _(2024-12-30)_ + +- Allow `LogicalExpr` to return dynamic type depend on operands. +- Speedup selecting from diffs table by 58.36% (In Gitql repo from 6.001383125s to 2.4985875s) #124. +- Speedup selecting from refs table by 32.45% (In Gitql repo from 5.367084ms to 3.625292ms). +- Support overriding `LIKE`, `GLOB` and `REGEXP` for user defined types. +- Introduce `diff_changes` column in diffs table to store changes. +- Rename `deletions` columns to `removals` in diff table. +- Implement `DIFF_CONTENT`, `DIFF_ADDED_CONTENT`, `DIFF_DELETED_CONTENT` and `DIFF_MODIFIED_CONTENT` functions in GitQL App scope. +- Implement `DIFF_CONTENT_CONTAINS` and `DIFF_ADDED_CONTENT_CONTAINS` functions in GitQL App scope. +- Implement `DIFF_DELETED_CONTENT_CONTAINS` and `DIFF_MODIFIED_CONTENT_CONTAINS` functions in GitQL App scope. +- Implement `DIFF_FILES_COUNT` and `IS_DIFF_HAS_FILE` functions in GitQL App scope. +- Create constructors for Types and Values that make it easy to create instance. + ## Version 0.33.0 _(2024-12-18)_ - Check for repositories in the script mode. diff --git a/Cargo.lock b/Cargo.lock index bf789ee..e56b6d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -534,7 +534,7 @@ dependencies = [ [[package]] name = "gitql" -version = "0.33.0" +version = "0.34.0" dependencies = [ "criterion", "gitql-ast", @@ -549,14 +549,14 @@ dependencies = [ [[package]] name = "gitql-ast" -version = "0.30.0" +version = "0.31.0" dependencies = [ "dyn-clone", ] [[package]] name = "gitql-cli" -version = "0.33.0" +version = "0.34.0" dependencies = [ "comfy-table", "csv", @@ -569,7 +569,7 @@ dependencies = [ [[package]] name = "gitql-core" -version = "0.10.0" +version = "0.11.0" dependencies = [ "chrono", "dyn-clone", @@ -580,7 +580,7 @@ dependencies = [ [[package]] name = "gitql-engine" -version = "0.33.0" +version = "0.34.0" dependencies = [ "chrono", "gitql-ast", @@ -589,7 +589,7 @@ dependencies = [ [[package]] name = "gitql-parser" -version = "0.32.0" +version = "0.33.0" dependencies = [ "gitql-ast", "gitql-core", @@ -597,7 +597,7 @@ dependencies = [ [[package]] name = "gitql-std" -version = "0.10.0" +version = "0.11.0" dependencies = [ "chrono", "gitql-ast", diff --git a/Cargo.toml b/Cargo.toml index fcc059f..f1731a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql" authors = ["AmrDeveloper"] -version = "0.33.0" +version = "0.34.0" edition = "2021" description = "A SQL like query language to perform queries on .git files" license = "MIT" @@ -39,12 +39,12 @@ uuid = { version = "1.11.0", features = ["v4"] } lto = true [dependencies] -gitql-core = { path = "./crates/gitql-core", version = "0.10.0" } -gitql-std = { path = "./crates/gitql-std", version = "0.10.0" } -gitql-ast = { path = "./crates/gitql-ast", version = "0.30.0" } -gitql-parser = { path = "./crates/gitql-parser", version = "0.32.0" } -gitql-engine = { path = "./crates/gitql-engine", version = "0.33.0" } -gitql-cli = { path = "./crates/gitql-cli", version = "0.33.0" } +gitql-core = { path = "./crates/gitql-core", version = "0.11.0" } +gitql-std = { path = "./crates/gitql-std", version = "0.11.0" } +gitql-ast = { path = "./crates/gitql-ast", version = "0.31.0" } +gitql-parser = { path = "./crates/gitql-parser", version = "0.33.0" } +gitql-engine = { path = "./crates/gitql-engine", version = "0.34.0" } +gitql-cli = { path = "./crates/gitql-cli", version = "0.34.0" } gix = { workspace = true, features = ["blob-diff", "max-performance"] } diff --git a/crates/gitql-ast/Cargo.toml b/crates/gitql-ast/Cargo.toml index 50a71ea..5df55cd 100644 --- a/crates/gitql-ast/Cargo.toml +++ b/crates/gitql-ast/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql-ast" authors = ["AmrDeveloper"] -version = "0.30.0" +version = "0.31.0" edition = "2021" description = "GitQL Abstract syntax tree (AST)" repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-ast" diff --git a/crates/gitql-cli/Cargo.toml b/crates/gitql-cli/Cargo.toml index 10c90c0..5a3ac2a 100644 --- a/crates/gitql-cli/Cargo.toml +++ b/crates/gitql-cli/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql-cli" authors = ["AmrDeveloper"] -version = "0.33.0" +version = "0.34.0" edition = "2021" description = "GitQL Command line interface (CLI) components" repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-cli" @@ -10,9 +10,9 @@ keywords = ["cli", "gql", "language", "git", "sql"] categories = ["command-line-utilities"] [dependencies] -gitql-core = { path = "../gitql-core", version = "0.10.0" } -gitql-ast = { path = "../gitql-ast", version = "0.30.0" } -gitql-parser = { path = "../gitql-parser", version = "0.32.0" } +gitql-core = { path = "../gitql-core", version = "0.11.0" } +gitql-ast = { path = "../gitql-ast", version = "0.31.0" } +gitql-parser = { path = "../gitql-parser", version = "0.33.0" } comfy-table = { workspace = true } termcolor = { workspace = true } serde_json = { workspace = true } diff --git a/crates/gitql-core/Cargo.toml b/crates/gitql-core/Cargo.toml index df68624..01107ed 100644 --- a/crates/gitql-core/Cargo.toml +++ b/crates/gitql-core/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql-core" authors = ["AmrDeveloper"] -version = "0.10.0" +version = "0.11.0" edition = "2021" description = "GitQL Core components" repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-cli" @@ -10,7 +10,7 @@ keywords = ["cli", "gql", "language", "git", "sql"] categories = ["command-line-utilities"] [dependencies] -gitql-ast = { path = "../gitql-ast", version = "0.30.0" } +gitql-ast = { path = "../gitql-ast", version = "0.31.0" } chrono = { workspace = true } dyn-clone = { workspace = true } indexmap = { workspace = true } diff --git a/crates/gitql-engine/Cargo.toml b/crates/gitql-engine/Cargo.toml index 61268ff..89fd79e 100644 --- a/crates/gitql-engine/Cargo.toml +++ b/crates/gitql-engine/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql-engine" authors = ["AmrDeveloper"] -version = "0.33.0" +version = "0.34.0" edition = "2021" description = "GitQL Engine" repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-engine" @@ -10,6 +10,6 @@ keywords = ["cli", "gql", "language", "git", "sql"] categories = ["command-line-utilities"] [dependencies] -gitql-core = { path = "../gitql-core", version = "0.10.0" } -gitql-ast = { path = "../gitql-ast", version = "0.30.0" } +gitql-core = { path = "../gitql-core", version = "0.11.0" } +gitql-ast = { path = "../gitql-ast", version = "0.31.0" } chrono = { workspace = true } diff --git a/crates/gitql-parser/Cargo.toml b/crates/gitql-parser/Cargo.toml index 25b39d6..8617900 100644 --- a/crates/gitql-parser/Cargo.toml +++ b/crates/gitql-parser/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql-parser" authors = ["AmrDeveloper"] -version = "0.32.0" +version = "0.33.0" edition = "2021" description = "GitQL parser" repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-parser" @@ -10,5 +10,5 @@ keywords = ["cli", "gql", "language", "git", "sql"] categories = ["command-line-utilities"] [dependencies] -gitql-core = { path = "../gitql-core", version = "0.10.0" } -gitql-ast = { path = "../gitql-ast", version = "0.30.0" } +gitql-core = { path = "../gitql-core", version = "0.11.0" } +gitql-ast = { path = "../gitql-ast", version = "0.31.0" } diff --git a/crates/gitql-std/Cargo.toml b/crates/gitql-std/Cargo.toml index 92072fb..d6ef1c0 100644 --- a/crates/gitql-std/Cargo.toml +++ b/crates/gitql-std/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitql-std" authors = ["AmrDeveloper"] -version = "0.10.0" +version = "0.11.0" edition = "2021" description = "GitQL Standard and Aggregation functions" repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-cli" @@ -10,8 +10,8 @@ keywords = ["cli", "gql", "language", "git", "sql"] categories = ["command-line-utilities"] [dependencies] -gitql-core = { path = "../gitql-core", version = "0.10.0" } -gitql-ast = { path = "../gitql-ast", version = "0.30.0" } +gitql-core = { path = "../gitql-core", version = "0.11.0" } +gitql-ast = { path = "../gitql-ast", version = "0.31.0" } chrono = { workspace = true } regex = { workspace = true } rand = { workspace = true }