Skip to content

Comments

Support Doppler-style ClickHouse env vars#6

Merged
KeKs0r merged 1 commit intomainfrom
KeKs0r/doppler-env-vars
Feb 18, 2026
Merged

Support Doppler-style ClickHouse env vars#6
KeKs0r merged 1 commit intomainfrom
KeKs0r/doppler-env-vars

Conversation

@KeKs0r
Copy link
Contributor

@KeKs0r KeKs0r commented Feb 18, 2026

Summary

  • Add support for CLICKHOUSE_URL (parsed into host, port, secure, and password)
  • Add support for CLICKHOUSE_USERNAME as fallback for CLICKHOUSE_USER
  • Add support for CLICKHOUSE_DB as fallback for CLICKHOUSE_DATABASE

This enables seamless Doppler integration without requiring bash wrappers to translate between env var names.

Changes

  • Extracted resolveConnectionConfig() and parseClickHouseUrl() as exported functions for testability
  • Added 15 tests covering URL parsing and env var precedence
  • Updated help text to document the new env var aliases

🤖 Generated with Claude Code

Add support for CLICKHOUSE_URL (for full connection string), CLICKHOUSE_USERNAME (fallback for CLICKHOUSE_USER), and CLICKHOUSE_DB (fallback for CLICKHOUSE_DATABASE). This enables Doppler integration without requiring bash wrappers to translate between env var names.

Exported parseClickHouseUrl and resolveConnectionConfig for testability. Added 15 tests covering URL parsing and env var precedence.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@KeKs0r KeKs0r merged commit 7f9f0ab into main Feb 18, 2026
1 check 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.

1 participant