BSD Ports

databases/pgsanity 0.3.0 FreeBSD

Check syntax of PostgreSQL SQL files

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
33d597b361
License
MIT
Categories
databases, python
Package size
12.2 KiB, 34.8 KiB installed

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.

In the other systems

SystemPortVersion
FreeBSDdatabases/pgsanity0.3.0
DragonFlydatabases/pgsanity0.2.9_4

Install

Binary package:

pkg install py312-pgsanity

From the ports tree:

cd /usr/ports/databases/pgsanity/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-pgsanity>0:databases/pgsanity

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.3.00.3.00.2.9_30.2.9_40.3.0
FreeBSD:14:quarterly0.3.00.3.0n/a0.2.9_40.3.0
FreeBSD:15:latest0.3.00.3.0n/a0.2.9_40.2.9_4
FreeBSD:15:quarterly0.3.00.3.0n/an/an/a
FreeBSD:16:latest0.3.00.3.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 10

No port depends on this one.

Configuration

Options name: databases_pgsanity

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
pgsql python shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
markdrago-pgsanity-v0.3.0_GH0.tar.gz16246cd83c918056dd64e1df4ae50b6609e6f9b24742e7703e06cbf66cea8036b55c8

Commit history 1

DateCommitCreditsLog message
33d597b361 Mateusz Piotrowski databases/pgsanity: Update to 0.3.0
PR: 298487 Sponsored by: fme AG