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

The compose environment uses Greenplum 6.27.1 and exposes localhost:15432 with gpadmin/pivotal and database test.

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.4.tar.gz (21.8 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.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file datus_greenplum-0.1.4.tar.gz.

File metadata

  • Download URL: datus_greenplum-0.1.4.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for datus_greenplum-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8d41fa09fbd0f74ee6857ca8e1865f101451b1fd136d8007ef8a57faca20eee3
MD5 dde9fabab1cb8eb21dd3ee73f918c6c8
BLAKE2b-256 35301e6f53f4ff0b2f2df45cdf850315275c6c720cdf382de83f4e9128dde4bc

See more details on using hashes here.

File details

Details for the file datus_greenplum-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for datus_greenplum-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 052cfbd0931897d9d4fd846da430e2c8d0cbadf1ec70630271d8770c0051c7b4
MD5 1844c7ac269e8f8eb9a4b9e58666a950
BLAKE2b-256 aadde7d40f8d0313448e64c7ba639d261c9b4801419f5dcf3e9e3db1caf96dd8

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