Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c0dfc09
task: first draft of pg-query query builder
norberttech Dec 4, 2025
5edf187
task: cover query builder with integraiton tests
norberttech Dec 5, 2025
b2e88d2
refactor: simplify interfaces implementation in builders
norberttech Dec 5, 2025
c2c7ba1
refactor: simplify nesting queries
norberttech Dec 5, 2025
5fa4b9e
refactor: narrow query builder to specific builders
norberttech Dec 5, 2025
d6230f4
chore: document query builder in pg-query librrary
norberttech Dec 6, 2025
9a0d288
task: added missing dsl functions to query builder
norberttech Dec 6, 2025
e1f87a0
chore: cleanups
norberttech Dec 7, 2025
c65bf62
refactor: unify query builder col DSL function
norberttech Dec 7, 2025
93fa4a7
task: added merge sql command to query builder
norberttech Dec 7, 2025
479e196
task: added copy to pg-query query builder
norberttech Dec 7, 2025
687d505
task: added transaction sql statement query builder
norberttech Dec 7, 2025
f31cc72
task: add table operations to query builder
norberttech Dec 7, 2025
b530842
task: added index query builder
norberttech Dec 7, 2025
b57e108
task: added query builders for utility commands
norberttech Dec 7, 2025
a3205a7
task: added sequence to query builder
norberttech Dec 7, 2025
c80ebaf
task: added view query builder
norberttech Dec 8, 2025
bc9c384
task: added schema query builder
norberttech Dec 8, 2025
5e6fe14
task: added role grant query builder
norberttech Dec 8, 2025
b617c76
task: added function procedur query builder
norberttech Dec 8, 2025
bc304c3
task: added trigger rule query builder
norberttech Dec 8, 2025
73ae6ec
task: added type / extension / domain query builders
norberttech Dec 8, 2025
a413ebf
refactor: simplify select query builder
norberttech Dec 8, 2025
0f6a367
chore: cleanups in tests
norberttech Dec 9, 2025
c64ed85
chore: cover query builder with db tests
norberttech Dec 11, 2025
69de9a4
chore: unify query builder api parameters
norberttech Dec 11, 2025
82d8e35
refactor: unified create_ alter_ drop_ builders to have the same star…
norberttech Dec 11, 2025
2695a7d
refactor: improve DX of CTE (with) query builder
norberttech Dec 11, 2025
3db3517
refactor: merge copy_from and copy_to under one copy dsl builder
norberttech Dec 11, 2025
d10aa08
refactor: replaced multiple literal_ dsl functions with one, literal
norberttech Dec 11, 2025
0813340
refactor: renamed library from flow-php/pg-query to flow-php/postgresql
norberttech Dec 11, 2025
efab248
fix: foreign key constraint SQL output
norberttech Dec 11, 2025
b2b35e3
fix: documentation code examples
norberttech Dec 11, 2025
d4ca2a9
fix: github actions test workflows
norberttech Dec 11, 2025
b6434dd
fix: missign packages required to install pg-query-ext through pie
norberttech Dec 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions .github/workflows/job-pg-query-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ jobs:
echo "extension=pg_query.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
php -m | grep pg_query

- name: Run pg-query library tests
run: composer test:lib:pg-query

- name: Upload to Codecov
uses: ./.github/actions/codecov-report
with:
token: ${{ secrets.CODECOV_TOKEN }}
php-version: ${{ matrix.php }}
dependencies: locked

pie-install-test:
name: Test PIE Installation
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/job-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
coverage: 'pcov'
extensions: ':psr, bcmath, dom, hash, json, mbstring, xml, xmlwriter, xmlreader, zlib, curl'
ini-values: 'memory_limit=-1, post_max_size=32M, upload_max_filesize=32M'
apt-packages: "build-essential autoconf automake libtool protobuf-compiler libprotobuf-c-dev"
pie-extensions: "flow-php/pg-query-ext:1.x-dev"

- name: Set up Node.js
uses: actions/setup-node@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-windows-

- name: "Install locked dependencies"
run: "composer install --no-interaction --no-progress --no-scripts"
run: "composer install --no-interaction --no-progress --no-scripts --ignore-platform-req=ext-pgsql --ignore-platform-req=ext-pg_query"

- name: "Install PHPUnit"
run: "composer install --working-dir=./tools/phpunit --no-interaction --no-progress"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/monorepo-split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
split_repository: 'snappy'
- local_path: 'src/lib/types'
split_repository: 'types'
- local_path: 'src/lib/pg-query'
split_repository: 'pg-query'
- local_path: 'src/lib/postgresql'
split_repository: 'postgresql'

- local_path: 'src/adapter/etl-adapter-avro'
split_repository: 'etl-adapter-avro'
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
'fopen_flags' => true,
'heredoc_to_nowdoc' => true,
'increment_style' => ['style' => 'post'],
'is_null' => false,
'linebreak_after_opening_tag' => false,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'modernize_types_casting' => false,
Expand Down
2 changes: 1 addition & 1 deletion bin/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int
__DIR__ . '/../src/adapter/etl-adapter-xml/src/Flow/ETL/Adapter/XML/functions.php',
__DIR__ . '/../src/lib/filesystem/src/Flow/Filesystem/DSL/functions.php',
__DIR__ . '/../src/lib/types/src/Flow/Types/DSL/functions.php',
__DIR__ . '/../src/lib/pg-query/src/Flow/PgQuery/DSL/functions.php',
__DIR__ . '/../src/lib/postgresql/src/Flow/PostgreSql/DSL/functions.php',
__DIR__ . '/../src/bridge/filesystem/azure/src/Flow/Filesystem/Bridge/Azure/DSL/functions.php',
__DIR__ . '/../src/bridge/filesystem/async-aws/src/Flow/Filesystem/Bridge/AsyncAWS/DSL/functions.php',
__DIR__ . '/../src/lib/azure-sdk/src/Flow/Azure/SDK/DSL/functions.php',
Expand Down
25 changes: 14 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"ext-xmlreader": "*",
"ext-xmlwriter": "*",
"ext-zlib": "*",
"ext-pgsql": "*",
"composer-runtime-api": "^2.1",
"async-aws/s3": "^2.6",
"brick/math": "^0.11 || ^0.12 || ^0.13 || ^0.14",
Expand Down Expand Up @@ -95,7 +96,7 @@
"flow-php/snappy": "self.version",
"flow-php/symfony-http-foundation-bridge": "self.version",
"flow-php/types": "self.version",
"flow-php/pg-query": "self.version"
"flow-php/postgresql": "self.version"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down Expand Up @@ -132,7 +133,7 @@
"src/lib/parquet/src/Flow",
"src/lib/snappy/src/Flow",
"src/lib/types/src/Flow",
"src/lib/pg-query/src/Flow",
"src/lib/postgresql/src/Flow",
"src/tools/documentation/src/Flow"
],
"Flow\\Doctrine\\Bulk\\": [
Expand Down Expand Up @@ -171,8 +172,8 @@
"src/lib/parquet/src/stubs.php",
"src/lib/snappy/polyfill.php",
"src/lib/types/src/Flow/Types/DSL/functions.php",
"src/lib/pg-query/src/Flow/PgQuery/DSL/functions.php",
"src/lib/pg-query/src/stubs.php"
"src/lib/postgresql/src/Flow/PostgreSql/DSL/functions.php",
"src/lib/postgresql/src/stubs.php"
]
},
"autoload-dev": {
Expand Down Expand Up @@ -208,7 +209,7 @@
"src/lib/parquet/tests/Flow",
"src/lib/snappy/tests/Flow",
"src/lib/types/tests/Flow",
"src/lib/pg-query/tests/Flow",
"src/lib/postgresql/tests/Flow",
"src/tools/documentation/tests/Flow"
],
"Flow\\Doctrine\\Bulk\\Tests\\": [
Expand Down Expand Up @@ -253,7 +254,7 @@
"@test:lib:filesystem",
"@test:lib:parquet",
"@test:lib:parquet-viewer",
"@test:lib:pg-query",
"@test:lib:postgresql",
"@test:lib:snappy",
"@test:lib:types"
],
Expand Down Expand Up @@ -314,8 +315,9 @@
"test:lib:types": [
"tools/phpunit/vendor/bin/phpunit --testsuite=lib-types-unit --log-junit ./var/phpunit/logs/lib-types-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-types-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-types-unit"
],
"test:lib:pg-query": [
"tools/phpunit/vendor/bin/phpunit --testsuite=lib-pg-query-unit --log-junit ./var/phpunit/logs/lib-pg-query-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-pg-query-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-pg-query-unit"
"test:lib:postgresql": [
"tools/phpunit/vendor/bin/phpunit --testsuite=lib-postgresql-unit --log-junit ./var/phpunit/logs/lib-postgresql-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-postgresql-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-postgresql-unit",
"tools/phpunit/vendor/bin/phpunit --testsuite=lib-postgresql-integration --log-junit ./var/phpunit/logs/lib-postgresql-integration.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-postgresql-integration.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-postgresql-integration"
],
"test:bridge:filesystem-azure": [
"tools/phpunit/vendor/bin/phpunit --testsuite=bridge-filesystem-azure-unit --log-junit ./var/phpunit/logs/bridge-filesystem-azure-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/bridge-filesystem-azure-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/bridge-filesystem-azure-unit",
Expand Down Expand Up @@ -462,6 +464,7 @@
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.filesystem.xml",
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.parquet.xml",
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.parquet-viewer.xml",
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.postgresql.xml",
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.snappy.xml",
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.types.xml",
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/adapter.chartjs.xml",
Expand Down Expand Up @@ -489,9 +492,9 @@
"thrift --gen php --out src/lib/parquet/src src/lib/parquet/src/Flow/Parquet/Resources/Thrift/parquet.thrift",
"@cs:php:fix"
],
"build:pg-query:protobuf": [
"rm -rf src/lib/pg-query/src/Flow/PgQuery/Protobuf",
"protoc --php_out=src/lib/pg-query/src --proto_path=src/lib/pg-query/resources/proto pg_query.proto",
"build:postgresql:protobuf": [
"rm -rf src/lib/postgresql/src/Flow/PostgreSql/Protobuf",
"protoc --php_out=src/lib/postgresql/src --proto_path=src/lib/postgresql/resources/proto pg_query.proto",
"@cs:php:fix"
],
"pre-autoload-dump": [
Expand Down
1 change: 1 addition & 0 deletions documentation/components/core/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- [⬅️️ Back](/documentation/quick-start.md)
- [📚API Reference](/documentation/api/core)
- [📁Files](/documentation/api/core/indices/files.html)
- [🗺DSL](/documentation/api/core/namespaces/flow-etl-dsl.html)

[TOC]

Expand Down
1 change: 1 addition & 0 deletions documentation/components/libs/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- [⬅️️ Back](/documentation/introduction.md)
- [📚API Reference](/documentation/api/lib/filesystem)
- [📁Files](/documentation/api/lib/filesystem/indices/files.html)
- [🗺DSL](/documentation/api/lib/filesystem/namespaces/flow-filesystem-dsl.html)

[TOC]

Expand Down
Loading