Skip to content

feat(driver): implement HTTP connection pool, db.connect/disconnect and CI (#9) - #27

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/9-http-client-pool-and-ci
Jul 11, 2026
Merged

feat(driver): implement HTTP connection pool, db.connect/disconnect and CI (#9)#27
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/9-http-client-pool-and-ci

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary of Changes

  • Implemented robust ClickHouseClient in src/driver/client.rs with automatic URL parsing, Safe Mode (readonly=1) enforcement, and zero-trust authentication header injection from ConnectionSecretsPool.
  • Implemented global thread-safe session registry ConnectionPool in src/driver/pool.rs.
  • Implemented db.connect and db.disconnect JSON-RPC handlers in src/rpc/handlers/connection.rs with live health check (SELECT version()) and mock testing support (mock://).
  • Added GitHub Actions CI Workflow in .github/workflows/rust.yml enforcing formatting (cargo fmt), linting (cargo clippy -- -D warnings), and unit tests (cargo test).
  • Added 4 new unit tests (19 total tests passing cleanly).

Closes #9

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e750c83 into dev Jul 11, 2026
2 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/9-http-client-pool-and-ci branch July 30, 2026 07:25
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.

1 participant