Skip to content

Commit 2dd6c2d

Browse files
committed
Add Common Table Expressions (CTEs) support to PormG
- Implemented CTE functionality in QueryBuilder, allowing users to define temporary result sets for complex queries. - Added `With` function to facilitate CTE creation and joining with main queries. - Enhanced SQLObjectQuery structure to store CTEs and their configurations. - Updated query building logic to include CTEs in SQL generation. - Expanded documentation to cover CTE usage with examples. - Added tests for various CTE scenarios, including basic joins, aggregations, and multiple CTEs.
1 parent 2b0c53f commit 2dd6c2d

25 files changed

Lines changed: 801 additions & 91 deletions

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PormG"
22
uuid = "7d8d7541-4d3d-4580-80a2-17064efb0993"
3-
authors = ["PingoLee <eurafael@msn.com>"]
43
version = "0.1.0"
4+
authors = ["PingoLee <eurafael@msn.com>"]
55

66
[deps]
77
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
@@ -10,6 +10,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
1010
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
1111
Decimals = "abce61dc-4473-55a0-ba07-351d65e31d42"
1212
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
13+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
1314
Infiltrator = "5903a43b-9cc3-4c30-8d17-598619ec4e9b"
1415
Inflector = "6d011eab-0732-4556-8808-e463c76bf3b6"
1516
Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5"
@@ -29,6 +30,7 @@ YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
2930

3031
[compat]
3132
Decimals = "0.4.1"
33+
Documenter = "1.14.1"
3234
Infiltrator = "1.8.3"
3335
OrderedCollections = "1.7.0"
3436
Printf = "1.11.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.11.5","generation_timestamp":"2025-10-06T15:09:25","documenter_version":"1.10.1"}}
1+
{"documenter":{"julia_version":"1.12.0","generation_timestamp":"2025-10-13T18:29:25","documenter_version":"1.14.1"}}

docs/build/api/index.html

Lines changed: 81 additions & 23 deletions
Large diffs are not rendered by default.

docs/build/assets/documenter.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/assets/themes/catppuccin-frappe.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/assets/themes/catppuccin-latte.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/assets/themes/catppuccin-macchiato.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/assets/themes/catppuccin-mocha.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/assets/themes/documenter-dark.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/assets/themes/documenter-light.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)