Skip to main content

PostgreSQL custom types management for DBWarden

Project description

dbwarden-pgsql-types

PostgreSQL custom type and sequence object handlers for DBWarden.

Object types

Object type Manages
enum CREATE TYPE ... AS ENUM, plus ADD VALUE for additive changes
domain CREATE/ALTER/DROP DOMAIN, with constraints and defaults
composite_type CREATE/ALTER/DROP TYPE ... AS (...)
sequence CREATE/ALTER/DROP SEQUENCE, including start, increment, bounds, and cycle

Enums register first, because domains and composite types can be defined over them.

Installation

dbwarden plugin add dbwarden-pgsql-types

Trust tier

This is an official DBWarden plugin. Its distribution name is classified before any of its code is imported, and dbwarden plugin add verifies the PyPI Trusted-Publishing attestation (PEP 740) against dbwarden-org/dbwarden-pgsql-types before installing. It loads automatically once installed, with no dbwarden plugin trust step.

Development

uv venv && uv pip install -e . -e ../dbwarden pytest
pytest -q

The tests/test_conformance.py suite runs DBWarden's shared conformance harness (dbwarden.plugin_conformance): entry point resolution, no import-time side effects, hook signatures, public-API-only imports, and idempotent setup().

License

MIT

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

dbwarden_pgsql_types-0.1.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbwarden_pgsql_types-0.1.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file dbwarden_pgsql_types-0.1.1.tar.gz.

File metadata

  • Download URL: dbwarden_pgsql_types-0.1.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for dbwarden_pgsql_types-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d409da72efd85ec9fc6d2cf3650c33831d8fd37c039c3e4305dcb6aaa6e6841
MD5 c3b6d8a8a407ac8086de49e0adbe0254
BLAKE2b-256 26675a2e8f655845130583c44b7ee9d76258eda7f22220e37f8787d7d5629f2c

See more details on using hashes here.

File details

Details for the file dbwarden_pgsql_types-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dbwarden_pgsql_types-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c31ad88cae9afd66565a7dfad82003527b0607d99027e6d618b6659919853cc5
MD5 85b0e0f33b98d60fbb9483266a5428fd
BLAKE2b-256 ac7a38a2062fa2fd9f1e2f9218df50f1efd7ec757252ca60ca564c78a79c6a75

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