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
| System | Port | Version |
|---|---|---|
| FreeBSD | databases/pgsanity | 0.3.0 |
| DragonFly | databases/pgsanity | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.3.0 | 0.3.0 | 0.2.9_3 | 0.2.9_4 | 0.3.0 |
| FreeBSD:14:quarterly | 0.3.0 | 0.3.0 | n/a | 0.2.9_4 | 0.3.0 |
| FreeBSD:15:latest | 0.3.0 | 0.3.0 | n/a | 0.2.9_4 | 0.2.9_4 |
| FreeBSD:15:quarterly | 0.3.0 | 0.3.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.3.0 | 0.3.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}uv-build08>=0.8.19,<0.9.0: devel/py-uv-build08
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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- pgsql python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| markdrago-pgsanity-v0.3.0_GH0.tar.gz | 16246 | cd83c918056dd64e1df4ae50b6609e6f9b24742e7703e06cbf66cea8036b55c8 |