Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clickhouse-go compatible DSN #524

Closed
yuzhichang opened this issue Dec 3, 2020 · 2 comments
Closed

clickhouse-go compatible DSN #524

yuzhichang opened this issue Dec 3, 2020 · 2 comments
Labels

Comments

@yuzhichang
Copy link

clickhouse-go DSN:

  • alt_hosts - comma separated list of single address host for load-balancing
  • connection_open_strategy - random/in_order (default random).

These parameters enables load-balance and fault- toleration.

@zhicwu zhicwu added this to the 0.4.0 release milestone Mar 5, 2021
@zhicwu
Copy link
Contributor

zhicwu commented Mar 5, 2021

In general all clients should use similar settings as in official clickhouse-client, and behave in the same way. It's a good suggestion and we'll revisit this in 0.4.

@zhicwu zhicwu added the module-jdbc JDBC driver label Oct 6, 2021
@zhicwu
Copy link
Contributor

zhicwu commented May 25, 2022

Not going to use the exact same DSN, because Java client and JDBC driver support multiple formats(TSV and RowBinary) and protocols(http, https, grpc, tcp and tcp secure) as of 0.3.2. It's more natural to use nested URLs as mentioned in #894.

@zhicwu zhicwu closed this as completed May 25, 2022
@zhicwu zhicwu removed this from the 0.4.0 release milestone May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants