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.1rc2.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.1rc2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datus_greenplum-0.1.1rc2.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.1rc2.tar.gz
Algorithm Hash digest
SHA256 93f1cb755926e25d5dc40710e5dc6df635c4c98f896da6ffdd66284b2d2e02a0
MD5 d9e7f02976c611d43b493f61f469cbd2
BLAKE2b-256 560e268655c1ee7d51c0b5e31504da73f9265bbd22d3ec33beea86977df3d016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datus_greenplum-0.1.1rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3bb34d79880d2e366c664d7d01b0dd71565319cf1a16ccd3619fbdafd69264d
MD5 1a9cd216e4089e791d276fcea5e9c4c0
BLAKE2b-256 8492ea0479d65d51fe662152e404bbcdb85c84d50f5a7662858d3ffebf82f86c

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