Skip to main content

Check syntax of sql for PostgreSQL

Project description

PgSanity checks the syntax of Postgresql SQL files.

It does this by leveraging the ecpg command which is traditionally used for preparing C files with embedded sql for compilation. However, as part of that preparation, ecpg checks the embedded SQL statements for syntax errors using the exact same parser that is in PostgreSQL.

So the approach that PgSanity takes is to take a file that has a list of bare SQL in it, make that file look like a C file with embedded SQL, run it through ecpg and let ecpg report on the syntax errors of the SQL.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgsanity-0.2.5.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file pgsanity-0.2.5.tar.gz.

File metadata

  • Download URL: pgsanity-0.2.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pgsanity-0.2.5.tar.gz
Algorithm Hash digest
SHA256 95fe149516c1a84d0829d6435090a4ab1b78f61219dfd8165d3e62e6497773c3
MD5 7f36aecdf949cf9e8a563c96811f1ef5
BLAKE2b-256 07aee5779180dfba3436db6b95e3af2110df092a4787169f9c18cb56c80d919e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page