Skip to content

Conversation

@louloulin
Copy link
Collaborator

No description provided.

Major fixes:

1. Configuration file fixes
   - Update examples/README.md:
     * Fix Docker image name to opengauss/opengauss:latest
     * Add Rust installation guide for China (using rsproxy.cn mirror)
     * Update run command from --example to --bin
     * Update example list to include only 11 existing examples
   - Update examples/Cargo.toml:
     * Add 5 missing binary declarations

2. Fix type conversion issues
   - sync_basic.rs: Fix timestamp type conversion (using ::text)
   - async_basic.rs: Fix DECIMAL type handling (using dynamic SQL and ::float8)
   - sync_transactions.rs: Fix f64 to DECIMAL parameter binding issues
   - async_authentication.rs: Fix int8/i64 type issues

3. Fix formatting issues
   - sync_authentication.rs: Use {:?} to format Host type
   - async_authentication.rs: Use {:?} to format Host type

4. Fix borrow checker errors
   - sync_transactions.rs: Properly handle transaction lifetime

All examples now compile and run successfully.
Changes include:
- Updated health check command in docker-compose.yml to use a timeout-based TCP connection test.
- Introduced dotenvy dependency in multiple Cargo.toml files for environment variable management.
- Refactored database connection strings in test files to utilize a centralized function for loading environment variables, improving maintainability and flexibility.
- Added helper functions to load environment variables and construct connection strings in test modules.

These updates streamline the configuration process and improve the robustness of database connectivity in tests.
Changes include:
- Added .env to .gitignore to prevent sensitive information from being tracked.
- Removed the env.example file, which is no longer needed for configuration guidance.
- Updated Cargo.toml files across multiple packages to include new features for opengauss support.
- Added conditional compilation for tests related to opengauss in test files.

These updates streamline environment management and enhance feature support for opengauss.
Changes include:
- Added badges for Crates.io version, documentation, and license.
- Expanded feature section to include flexible feature support for GaussDB and OpenGauss.
- Provided detailed examples for configuring dependencies with different feature flags.
- Updated documentation structure with new sections for feature guides and technical documentation.

These updates improve the clarity and accessibility of the project's documentation.
@louloulin louloulin changed the title Feature open Feature opengauss and gauss Oct 31, 2025
@szlele szlele merged commit fa637b8 into HuaweiCloudDeveloper:master Nov 10, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants