Enhance GaussDB Python Driver Examples with SSL, Logical Replication, and Load Balancing Demos #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request enhances the GaussDB Python driver repository by adding comprehensive usage examples and improving existing documentation. Key additions include a new SSL setup script, logical replication demo, master-standby and distributed load balancing examples, and detailed READMEs with setup instructions. The changes improve usability, add type safety, and enhance the demonstration of advanced GaussDB features like SSL connections, logical replication, and high-availability scenarios.
Changes Made
cluster_ha_showcase.py
with type hints and better formatting.example/imgs
for visual demonstration.example/README.md
with setup instructions for SSL and non-SSL modes.ssl_demo.py
to demonstrate SSL and non-SSL database connections.README.rst
by referencingssl_opengauss_docker.sh
.ssl_opengauss_docker.sh
for streamlined SSL certificate generation and Docker container setup.logical_replication_demo.py
to demonstrate logical replication functionality.cluster_opengauss_docker.sh
.demo.py
for better readability.Why
These changes aim to:
Testing
Local Testing:
ssl_opengauss_docker.sh
on a Docker environment.ssl_demo.py
with bothrequire
andverify-ca
SSL modes.logical_replication_demo.py
to confirm replication slot creation and CRUD operations.cluster_ha_showcase.py
to validate master-standby and load balancing scenarios.Environment: