
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@ovotech/prettier-plugin-pgsql
Advanced tools
Plugin for formatting postgres SQL
yarn add --dev @ovotech/prettier-plugin-pgsql
Which should allow you to format sql files
prettier --write **/*.sql
Since potygen is built to work with sql template strings, as they are much more ergonomic in typescript, the native prettier plugins are still not enough. Prettier itself does not support custom sql template strings, outside its predifined ones - this issue is tracked here: https://github.com/prettier/prettier/issues/4424
To get around this I've created a very simple patch to prettier code and will publish a patched version at @potygen/prettier for the time being, until a proper solution is found.
To set it up you need to force yarn (or npm) to load "prettier" from another repo. The code is the same, just adds "sql" as an additional template string that is then able to be extended by the plugin.
{
"devDependencies": {
"prettier": "npm:@potygen/prettier@^2.8.1"
}
}
FAQs
Prettier plugin for formatting postgres SQL
The npm package @ovotech/prettier-plugin-pgsql receives a total of 1,687 weekly downloads. As such, @ovotech/prettier-plugin-pgsql popularity was classified as popular.
We found that @ovotech/prettier-plugin-pgsql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 384 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.