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
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.2.tar.gz
(20.2 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.2.tar.gz.
File metadata
- Download URL: datus_greenplum-0.1.2.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca92416fa959d25d6ef6af9955ccb1f7ca79116dacdc71f939cd6665ffff867b
|
|
| MD5 |
45977048746ce7ce6b201e572aca9aaa
|
|
| BLAKE2b-256 |
066a23a00b6f05fdec8bc9a386f3f873de7eeeaf50c90311b218e61b59b3e9e5
|
File details
Details for the file datus_greenplum-0.1.2-py3-none-any.whl.
File metadata
- Download URL: datus_greenplum-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.2 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 |
76419ab72a5922f0df9e03844df86fc5bfb9ed43d86548b589a5e1790f7a1189
|
|
| MD5 |
d4594ade0d2718349c4fcc3abbfb4e0b
|
|
| BLAKE2b-256 |
25235d033293b01c28c5252b8b6f2279dd85772e60372d4ab9cbd81766ae1052
|