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

Add example in how to use this with a https clickhouse URL #134

Closed
joshstevens19 opened this issue Aug 21, 2024 · 2 comments
Closed

Add example in how to use this with a https clickhouse URL #134

joshstevens19 opened this issue Aug 21, 2024 · 2 comments

Comments

@joshstevens19
Copy link

It seems to need a few moving parts to connect this lib with an HTTPS clickhouse URL and probably a lot of people would like to see an example of which they can copy in and replace their parameters without having to find it out based on other peoples code. Would be pretty useful example IMHO

@slvrtrn
Copy link
Contributor

slvrtrn commented Aug 24, 2024

@joshstevens19, do you need certificates or just an example of using it with an HTTPS URL with enabled TLS feature?

If it is just HTTPS, you could use this example: https://github.com/ClickHouse/clickhouse-rs/blob/master/examples/clickhouse_cloud.rs, which should be sufficient, as CH Cloud is HTTPS.

@slvrtrn
Copy link
Contributor

slvrtrn commented Sep 10, 2024

It is now also mentioned in the website docs: https://clickhouse.com/docs/en/integrations/rust#https-or-clickhouse-cloud-connection

Feel free to re-open if you still have questions.

@slvrtrn slvrtrn closed this as completed Sep 10, 2024
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

No branches or pull requests

2 participants