Skip to content

feat(flow-php/postgresql): keep SQL comments in deparse and sql_format - #2753

Merged
norberttech merged 1 commit into
1.xfrom
pg-query-format-comments
Nov 19, 2026
Merged

norberttech merged 1 commit into
1.xfrom
pg-query-format-comments

Conversation

@norberttech

Copy link
Copy Markdown
Member

Resolves: #2742

Change Log


Added

  • flow-php/pg-query-ext - pg_query_deparse_opts() keeps the comments of the comments_from source SQL
  • flow-php/postgresql - DeparseOptions::preserveComments() keeps SQL comments in deparse() and sql_format()
  • flow-php/postgresql - ExtensionOutdatedException for a pg_query extension without comments support
  • flow-php/symfony-postgresql-bundle - flow:sql:format --preserve-comments

Fixed

  • flow-php/filesystem-async-aws-bridge - bulk delete error message for a refusal without a key

Changed

Removed

Deprecated

Security

- DeparseOptions::preserveComments(), off by default
- pg_query_deparse_opts() takes comments_from source SQL
- flow:sql:format --preserve-comments
- ExtensionOutdatedException for pg_query without comments support
- playground php.wasm rebuilt with the new extension
- fix null key in AsyncAWS S3 bulk delete error message

Closes #2742
@norberttech norberttech added this to the 0.49.0 milestone Nov 19, 2026
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.08%. Comparing base (2aed73a) to head (7e4c844).
⚠️ Report is 1 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x    #2753   +/-   ##
=========================================
  Coverage     91.08%   91.08%           
- Complexity    32315    32322    +7     
=========================================
  Files          2239     2240    +1     
  Lines         93376    93397   +21     
=========================================
+ Hits          85048    85068   +20     
- Misses         8328     8329    +1     
Components Coverage Δ
etl 96.24% <ø> (ø)
cli 87.40% <ø> (ø)
lib-array-dot 96.52% <ø> (ø)
lib-azure-sdk 69.50% <ø> (ø)
lib-doctrine-dbal-bulk 94.44% <ø> (ø)
lib-filesystem 89.10% <ø> (ø)
lib-types 94.64% <ø> (ø)
lib-parquet 82.80% <ø> (ø)
lib-parquet-viewer 83.15% <ø> (ø)
lib-snappy 89.86% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 90.44% <94.44%> (+<0.01%) ⬆️
lib-telemetry 86.85% <ø> (ø)
bridge-filesystem-async-aws 96.85% <100.00%> (+0.01%) ⬆️
bridge-filesystem-azure 95.66% <ø> (ø)
bridge-filesystem-sftp 90.29% <ø> (ø)
bridge-monolog-http 96.84% <ø> (ø)
bridge-monolog-telemetry 92.85% <ø> (ø)
bridge-openapi-specification 91.95% <ø> (ø)
symfony-http-foundation 80.76% <ø> (ø)
bridge-symfony-console 98.01% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 98.95% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.11% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 93.19% <ø> (ø)
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.72% <100.00%> (+<0.01%) ⬆️
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.76% <ø> (ø)
adapter-chartjs 82.46% <ø> (ø)
adapter-csv 97.68% <ø> (ø)
adapter-doctrine 95.14% <ø> (ø)
adapter-google-sheet 97.53% <ø> (ø)
adapter-http 87.40% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 47.05% <ø> (ø)
adapter-parquet 96.95% <ø> (ø)
adapter-text 97.68% <ø> (ø)
adapter-xml 98.01% <ø> (ø)
adapter-avro 6.25% <ø> (ø)
adapter-excel 96.79% <ø> (ø)
adapter-postgresql 97.35% <ø> (ø)
adapter-seal 90.00% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 87.36% <ø> (ø)
bridge-phpstan-types 0.00% <ø> (ø)
bridge-postgresql-valinor 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech
norberttech merged commit aab6f66 into 1.x Nov 19, 2026
27 checks passed
@norberttech
norberttech deleted the pg-query-format-comments branch November 19, 2026 19:16
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Proposal]: pg-query-ext: keep comments in pg_query_deparse_opts

1 participant