Datus Hologres Adapter
Alibaba Cloud Hologres adapter for Datus. It uses the PostgreSQL wire protocol while preserving Hologres-specific namespaces, table properties, and SQL rules.
Installation
pip install datus-hologres
Configuration
services:
datasources:
hologres:
type: hologres
host: ${HOLOGRES_HOST}
port: ${HOLOGRES_PORT}
username: ${HOLOGRES_ACCESS_KEY_ID}
password: ${HOLOGRES_ACCESS_KEY_SECRET}
database: ${HOLOGRES_DATABASE}
schema: public
sslmode: prefer
access_key_id and access_key_secret are also accepted as aliases for
username and password. You can pass a console endpoint either as a hostname
or as hostname:port; an explicitly configured port must match an embedded
endpoint port. Hologres public endpoints normally use port 80. Use the SSL mode
configured on the target Hologres instance.
The adapter supports table, schema.table, and
database.schema.table identifiers. It filters Hologres internal schemas from
normal metadata listings and includes Hologres storage properties in generated
table DDL.
Tests
Unit tests do not require cloud credentials:
uv run --all-packages --with pytest pytest datus-hologres/tests/unit -m "not integration"
Live tests require the following environment variables:
HOLOGRES_HOST=
HOLOGRES_PORT=80
HOLOGRES_DATABASE=
HOLOGRES_SCHEMA=public
HOLOGRES_ACCESS_KEY_ID=
HOLOGRES_ACCESS_KEY_SECRET=
HOLOGRES_SSLMODE=prefer
# Set to true only for an instance type that supports materialized views.
HOLOGRES_TEST_MATERIALIZED_VIEW=false
# Optional second database for cross-database schema-routing coverage.
HOLOGRES_SECONDARY_DATABASE=
HOLOGRES_SECONDARY_SCHEMA=public
# Optional preconfigured schema.table or database.schema.table foreign table.
HOLOGRES_TEST_FOREIGN_TABLE=
The integration suite creates an isolated temporary schema, loads a deterministic Tiny TPC-H fixture, and removes the schema when the test session finishes.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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_hologres-0.1.0.tar.gz.
File metadata
- Download URL: datus_hologres-0.1.0.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5baaad74f5af02eafbc1e3e92086e9ad0f6b9365024ed760e5f644f425b5984
|
|
| MD5 |
993d508e15936ad8b6137ab36262f631
|
|
| BLAKE2b-256 |
b300984f07eeff57973318f3bb9cdacc333822f7763c2b3b8573e00f6a970ff0
|
File details
Details for the file datus_hologres-0.1.0-py3-none-any.whl.
File metadata
- Download URL: datus_hologres-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe68c9cdc717ef7030dffa3989a4e1f9ebf499e417c22515c43cb6bb0ca1bcb1
|
|
| MD5 |
31499828624615f18a4e78245ba05e5c
|
|
| BLAKE2b-256 |
076ed478a72e8a38d45131759b15002c4fea4384eb2f5bef766e0a90f404ac23
|