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
Release history Release notifications | RSS feed
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.3.tar.gz
(21.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datus_greenplum-0.1.3.tar.gz.
File metadata
- Download URL: datus_greenplum-0.1.3.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a5423637a01f3c362ffc0504249255fc4ceca127bc1ddfddc2c57b32cb6f63d
|
|
| MD5 |
8d054efd5cc531390a7fc95455aa7d72
|
|
| BLAKE2b-256 |
74b1a15b82c000cf2ef6ac45d384b5ff5ffeeb7c2881e3cd147bc2604a1fe509
|
File details
Details for the file datus_greenplum-0.1.3-py3-none-any.whl.
File metadata
- Download URL: datus_greenplum-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91cd275e136a32676e969fd49b3d625e1fc8dba0619648b8aa61b3a6c79299be
|
|
| MD5 |
3374dc646d5ce86b25430ab78ddc0d49
|
|
| BLAKE2b-256 |
72c7fcb722c1d1b55647f9800311bd4e62bdff0de4d5ecf6924c6f44ad152101
|