Skip to main content

Greenplum database adapter for Datus

Project description

datus-greenplum

Greenplum database adapter for Datus.

Installation

pip install datus-greenplum

Usage

from datus_greenplum import GreenplumConfig, GreenplumConnector

config = GreenplumConfig(
    host="localhost",
    port=5432,
    username="gpadmin",
    password="pivotal",
    database="mydb",
)

connector = GreenplumConnector(config)
result = connector.execute({"sql_query": "SELECT 1"}, result_format="list")
print(result.sql_return)

Testing

# Unit tests (no database required)
cd datus-greenplum && python -m pytest tests/unit/ -v

# Integration tests (requires running Greenplum)
cd datus-greenplum
docker-compose up -d
python -m pytest tests/integration/ -v

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

datus_greenplum-0.1.1rc1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

datus_greenplum-0.1.1rc1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file datus_greenplum-0.1.1rc1.tar.gz.

File metadata

  • Download URL: datus_greenplum-0.1.1rc1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for datus_greenplum-0.1.1rc1.tar.gz
Algorithm Hash digest
SHA256 f18514c2f77d00e5d13eaa9175c6d4ef6407ceabe3ca1f8942062a08de263a3b
MD5 b8432895a078a0ada67b98711fc8fd6c
BLAKE2b-256 672ae4af8cdddc4f296ebbcffbb199d806932cf7d23d9550a31a9daa63fecf8c

See more details on using hashes here.

File details

Details for the file datus_greenplum-0.1.1rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for datus_greenplum-0.1.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 628e4d49faa3e99922b58f7647cff889344e02531d292b18098e94be7a17e14a
MD5 10d04c20540406f544e54ab41b21b06f
BLAKE2b-256 5f4892915e0d3b7266d4edd5b36a74992be0e7c250147435ffa137b8ced94264

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