贡比涅 - 2022 年 8 月 7 日
pgFormatter 5.3 发布
pgFormatter 5.3 版本已正式发布并可公开下载。pgFormatter 是一款免费且可靠的 SQL 和 PLPGSQL 代码格式化工具。在线演示站点:http://sqlformat.darold.net/
pgFormatter 是专为 PostgreSQL 打造的最先进的 SQL 和 PlPgsql 代码格式化和美化工具。可作为 CLI 或 CGI 程序使用。
本维护版本修复了过去六个月用户报告的问题。以下是完整的变更和致谢列表:
移除 DML 语句中的多余括号。
修复 -o | --output 总是被强制输出到 stdout 的问题。
新增对 json 操作符 ?| 的支持。
修复带选项和表空间的 create table 的格式化问题。
修复使用 --nocomment 时 create table 中的错误换行。
修复嵌套 CREATE SCHEMA 的格式化问题。
修复无效的多行字符串常量格式化。
强制多个 INSERT 值位于不同行。之前的行为是将所有值保留在同一行。
补充缺失的 ELSIF 关键字。
修复目标列表中存在 INDEX 时的缩进错误。
完整变更列表请参阅:https://github.com/darold/pgFormatter/blob/master/ChangeLog (https://github.com/darold/pgFormatter/blob/master/ChangeLog)
链接与致谢
感谢提交补丁的开发者和报告 Bug 及功能需求的用户,他们都在 ChangeLog 文件中列出。
pgFormatter 是一个开放项目。欢迎任何有助于改进工具的贡献。您只需通过 GitHub 工具提交您的想法、功能需求或补丁即可。
链接:
网站:http://sqlformat.darold.net (http://sqlformat.darold.net/)
下载1:https://github.com/darold/pgFormatter/releases (https://github.com/darold/pgFormatter/releases)
下载2:http://sourceforge.net/projects/pgformatter/ (http://sourceforge.net/projects/pgformatter/)
开发:https://github.com/darold/pgFormatter (https://github.com/darold/pgFormatter)
变更日志:https://github.com/darold/pgFormatter/blob/master/ChangeLog (https://github.com/darold/pgFormatter/blob/master/ChangeLog)
关于 pgFormatter
pgFormatter 是一款 SQL 和 PlPgsql 格式化/美化工具,支持 SQL-92、SQL-99、SQL-2003、SQL-2008、SQL-2011 以及 PostgreSQL 特有关键字。也可能适用于其他数据库。它与 pgBadger 共享相同的代码,因此解析器的任何改进都会同步到 pgBadger。该工具由 Gilles Darold 创建和维护。
pgFormatter 可在任何平台上运行,基于 PostgreSQL 许可证发布。