Write Postgres extensions as Sqitch projects.
Project description
pgxsq
pgxsq simplifies writing Postgres extensions (especially those relying on procedural languages) by managing changes with Sqitch.
Tracking changes in Postgres extensions is not easy. Updating procedures or
views requires copying the defintion and make the necessary changes. This has
a major drawback: the changes made are not obvious without resorting to diff.
Wouldn't it be great to track changes in version control and use, for example,
just git diff to see what changes were made?
pgxsq allows that by tracking changes with Sqitch and generating extension scripts from those changes. Changes are made by reworking the scripts that define the extension objects. Sqitch caries out the grunt work of tracking the original script version so that the script can be modified and tracked in version control. pgxsq builds the extension update paths from the Sqitch tags that are required for reworking.
Example
This repository contains an example that shows the steps from creating the Sqitch project to making changes to installing the extension.
Installation
Install with pip:
pip install pgxsq
Install from source:
make install
You also need to install Sqitch to create projects and use pgxsq.
Development
make
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pgxsq-0.2.0.tar.gz.
File metadata
- Download URL: pgxsq-0.2.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd9279630b13b68f17ad8ad5b20eca58cdace2b73263060d04a034ec2a510641
|
|
| MD5 |
909fb210522050902a735ed25ecda564
|
|
| BLAKE2b-256 |
ada75d6e984e1e82a4d7e31853f3565b5b9be01ebd1e12604fc7aac8227c6903
|
File details
Details for the file pgxsq-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pgxsq-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c245c246ba83a1cb775e8e570ce087ba421e048862f01fc4ad94a984b0315b29
|
|
| MD5 |
9a025cb1cbd8bd37ebbf36f59f6893cc
|
|
| BLAKE2b-256 |
6334bd849f7717c6f59c226db248ac988b230c9695f3c01d54be207a8c2b32fc
|