continuo-postgres-adapter
Postgres engine-adapter library for Continuo python nodes. PostgresAdapter
implements continuo_engine_contract.port.WarehouseAdapter (from the
continuo-engine-contract package) — one class covering both the data plane
(fetch / ensure_table / load) and release-time validation
(ensure_schema / drop_schema / build_empty_from_sql /
build_empty_from_columns / clone_empty_from_prod / check_binds) — and
registers itself under entry-point group continuo_engine.adapters as
postgres.
Connection env: POSTGRES_HOST, POSTGRES_DB, POSTGRES_USER (required);
POSTGRES_PORT (default 5432), POSTGRES_PASSWORD (default empty).
The connection runs with autocommit = True; every method owns its
transaction explicitly. load() and ensure_table() open an explicit
BEGIN around their statements and COMMIT/ROLLBACK themselves, so a
mid-sequence failure leaves no partial change. fetch() executes a single
read and commits (or rolls back on error), never leaving an open transaction
dangling.
The config: index vocabulary is the union of the two vocabularies this
adapter inherited from the merge: columns, unique, type, and name,
with the strictest check from each side applied. The derived index name is
built from the table and the column list only — type and unique are not
folded into it, so two index entries on the same columns that differ only in
type (or only in unique) collide on that derived name and are rejected as
a duplicate. Give one of them an explicit name: when that is genuinely
intended.
Verification tier: unit tests are mock-free pure-logic tests (type-grammar
validation, Arrow table construction from rows); DDL/transactional behavior
(schema/table creation, load truncate+insert+rollback, validation DDL) is
verified against a live postgres:16 engine in
tests/test_integration_runtime_postgres.py and
tests/test_integration_postgres_validation.py.
Metadata
Release files for continuo-postgres-adapter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| continuo_postgres_adapter-0.2.0.tar.gz | 29.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| continuo_postgres_adapter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.2 kB
Release files / continuo_postgres_adapter-0.2.0.tar.gz
| Download URL | continuo_postgres_adapter-0.2.0.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f6a25e1f0ef986d3f88f24e36800df230931f5bfc317ba018ef45bc74e8ae51
|
|
BLAKE2b-256 checksum How to use checksums |
c316929aa9446d1b11fe0699e95a61e9b6f4be85cee8b46f2705d6028f39a461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / continuo_postgres_adapter-0.2.0-py3-none-any.whl
| Download URL | continuo_postgres_adapter-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f89b9c755895ec511583d8bc7f3ef3be2827ca63b863ac9210df89bb60b8b0f3
|
|
BLAKE2b-256 checksum How to use checksums |
0ed577337fd9469770a7cffce26a6e3e10de1e97c481272a59a86c3b58ab57ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|