Enhance GaussDB Python Driver Examples with SSL, Logical Replication, and Load Balancing Demos#20
Merged
liubao68 merged 9 commits intoHuaweiCloudDeveloper:masterfrom Sep 15, 2025
Conversation
added 9 commits
September 9, 2025 16:33
…ster_standby_readme.md
…er_standby_readme.md
… connection modes
… replication example, and minor README/test fixes
…cal replication demo
…ss_docker.sh script, remove detailed certificate and config steps, and update cluster script to remove unnecessary user creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.pywith type hints and better formatting.example/imgsfor visual demonstration.example/README.mdwith setup instructions for SSL and non-SSL modes.ssl_demo.pyto demonstrate SSL and non-SSL database connections.README.rstby referencingssl_opengauss_docker.sh.ssl_opengauss_docker.shfor streamlined SSL certificate generation and Docker container setup.logical_replication_demo.pyto demonstrate logical replication functionality.cluster_opengauss_docker.sh.demo.pyfor better readability.Why
These changes aim to:
Testing
Local Testing:
ssl_opengauss_docker.shon a Docker environment.ssl_demo.pywith bothrequireandverify-caSSL modes.logical_replication_demo.pyto confirm replication slot creation and CRUD operations.cluster_ha_showcase.pyto validate master-standby and load balancing scenarios.Environment: