Metadata-Version: 2.4
Name: dbwarden-pgsql-types
Version: 0.1.1
Summary: PostgreSQL custom types management for DBWarden
Project-URL: Homepage, https://github.com/dbwarden-org/dbwarden-pgsql-types
Project-URL: Source, https://github.com/dbwarden-org/dbwarden-pgsql-types
Requires-Python: >=3.12.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dbwarden>=0.16.0
Dynamic: license-file

# dbwarden-pgsql-types

PostgreSQL custom type and sequence object handlers for [DBWarden](https://github.com/dbwarden-org/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

```bash
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

```bash
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
