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

support config client name #362

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

marlondu
Copy link
Contributor

#361
you can config your client name in jdbc url or datasource properties with client_name.
for example
Properties props = new Properties();
props.put("client_name", "ck-client");
DataSource singleDataSource = new BalancedClickhouseDataSource("jdbc:clickhouse://127.0.0.1:9000", props);

@codecov
Copy link

codecov bot commented Aug 15, 2021

Codecov Report

Merging #362 (a8e3388) into master (2b8d60f) will increase coverage by 0.05%.
The diff coverage is 85.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #362      +/-   ##
============================================
+ Coverage     61.84%   61.90%   +0.05%     
- Complexity     1191     1192       +1     
============================================
  Files           131      131              
  Lines          6401     6418      +17     
  Branches        475      475              
============================================
+ Hits           3959     3973      +14     
- Misses         2175     2178       +3     
  Partials        267      267              
Impacted Files Coverage Δ
...m/github/housepower/settings/ClickHouseConfig.java 77.12% <78.57%> (-0.19%) ⬇️
...m/github/housepower/jdbc/ClickHouseConnection.java 53.27% <100.00%> (ø)
...ava/com/github/housepower/settings/SettingKey.java 99.29% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b8d60f...a8e3388. Read the comment docs.

Copy link
Member

@sundy-li sundy-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution @marlondu

@sundy-li sundy-li merged commit 43d7d6d into housepower:master Aug 18, 2021
@marlondu marlondu deleted the customize-client-name branch August 21, 2021 01:00
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