DBWarden PostgreSQL extensions object plugin proof.
Project description
dbwarden-pgsql-extensions
PostgreSQL extension management for DBWarden.
dbwarden-pgsql-extensions is an official DBWarden plugin. It is discovered automatically through its dbwarden.plugins entry point and loaded without a consent prompt once installed.
What It Provides
An object handler for the pg_extension object type. It participates in DBWarden's schema diff pipeline (extract, canonicalize, diff, emit) so that PostgreSQL extensions declared in your configuration are converged with the database. The handler runs in the preamble, before tables, using public ordering anchors (after=PREAMBLE, before=BEFORE_TABLES).
It emits idempotent DDL:
CREATE EXTENSION IF NOT EXISTS "btree_gist";
-- rollback:
DROP EXTENSION IF EXISTS "btree_gist";
Install
dbwarden plugin add dbwarden-pgsql-extensions
plugin add verifies the package provenance (a PyPI PEP 740 attestation from the official repository) before installing. You can also install it directly:
uv add dbwarden-pgsql-extensions
# or
pip install dbwarden-pgsql-extensions
PostgreSQL only.
Use
Declare the extensions your schema needs in your DBWarden configuration (pg_extensions). With the plugin loaded, dbwarden make-migrations diffs the declared extensions against the live database and emits the CREATE EXTENSION / DROP EXTENSION statements in the correct order. Confirm the plugin is loaded:
dbwarden plugin list
Development
pip install -e . pytest
pytest -q
See the object-plugin docs.
License
MIT
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 dbwarden_pgsql_extensions-0.1.0.tar.gz.
File metadata
- Download URL: dbwarden_pgsql_extensions-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
438b7e8b16e17e77264da17a005a532de98a5c6857b39ad0bfd56e9c6a45ca97
|
|
| MD5 |
b28b6d57ac900327a7c4770bf5af403e
|
|
| BLAKE2b-256 |
8b0b31f741784e1fc5283552c036e847fcf56b0efda12588c8a4a7674d7eea49
|
File details
Details for the file dbwarden_pgsql_extensions-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dbwarden_pgsql_extensions-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9275c75b006e2b2c4adba268bf9c2d98204fe6b15111abffaed8e4f1d13ccd1
|
|
| MD5 |
65b91399ec0fc57c670adccd8930b9af
|
|
| BLAKE2b-256 |
9a523243a3ae4c46c0d1503cd56cc154949377db2e6d95b805e5a6e2de4e52c3
|