Skip to main content

PostgreSQL reference SQL execution plugin for Pipelantic.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

pipelantic-sql

PostgreSQL reference SQL execution plugin for Pipelantic.

pip install pipelantic-sql
# or: pip install 'pipelantic[sql]'
export PIPELANTIC_SQL_URL=postgresql+psycopg://user:pass@localhost:5432/pipelantic
# SQLite is fine for demos only:
# export PIPELANTIC_SQL_URL=sqlite+pysqlite:///:memory:

Uses SQLAlchemy Core. Driver dependencies stay out of pipelantic core.

Wiring

from pipelantic import Profile

Profile(name="sql-prod", sql_engine="sql")

Register @Transformation.implementation("sql") handlers that take RelationRef inputs and return SQL query handles (not fetched rows).

Capabilities (0.6)

  • SQL→SQL fusion without intermediate Python row fetch
  • Durable run-scoped staging tables (not session TEMP)
  • Insert-select / CTAS-style publication
  • Fail-closed planning when required capabilities are missing

Not included: MERGE / upsert (sql_merge=False). Requiring merge fails at planning.

Examples

python examples/sql_to_sql.py
python examples/sql_boundary_hybrid.py
python examples/sql_transactional_write.py
python examples/sql_failure_recovery.py

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

pipelantic_sql-0.6.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

pipelantic_sql-0.6.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file pipelantic_sql-0.6.0.tar.gz.

File metadata

  • Download URL: pipelantic_sql-0.6.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pipelantic_sql-0.6.0.tar.gz
Algorithm Hash digest
SHA256 4ca7d480cfd1d2de94f291ddf68afb14b73dccebe8c2015fc8b03333723df78d
MD5 e0e393d5b9aced9962ffe229b7e3deae
BLAKE2b-256 7d5cd4ef553c43c1a9281fcbe478fbdc3ac923423ab815d7ac609ce518cdf541

See more details on using hashes here.

File details

Details for the file pipelantic_sql-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: pipelantic_sql-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pipelantic_sql-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 169b43d2a7e22ff4fcdcdba870cf7b51c16f6d8eb4ca6abd735f817d05399f7e
MD5 2097af3fd52d79edb4326f3e9f0a2619
BLAKE2b-256 7eb207d0062c49be2d04f02dc8013d440d8708038d4df6fd953e394a59eefcf6

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