-
Notifications
You must be signed in to change notification settings - Fork 5
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
Initialize cluster via connection URL #24
Comments
) * #24 Allow connection string for initialization of ClickhouseCluster and add ability to pass db url via command line --------- Co-authored-by: Aleh Strakachuk <[email protected]>
Hey, Thank you for the idea. I made the requested changes, #25 You can find the necessary changes in the latest release 0.7.0 |
Hello, thanks a lot for implementing this! There is a minor issue that I wanted to report. Now it's possible to pass a default database for migration into Because It means that to supply |
* Allow default db name (from db URL) --------- Co-authored-by: Aleh Strakachuk <[email protected]>
Big thanks for the quick fix! It worked for me. Just a minor – IMO it looks a bit weird that it's required to pass the db name explicitly as None, like this. cluster.migrate(
db_name=None, # use default db
migration_path=MIGRATIONS_DIR,
...
) |
@selevit yes, looks weird, but I don't want to make breaking changes in API |
* Allow default db name (from db URL) --------- Co-authored-by: Aleh Strakachuk <[email protected]>
Hi, and thanks for the great library!
Wanted to mention that it would be nice to be able to initialize the
ClickhouseCluster
class via a URL likeclickhouse//:user:password@host...
. Theclickhouse_driver
library that you use actually supports it via a Client.from_url static method.Unfortunately,
clickhouse_driver
does not yet expose the "parse url" API, and I need to parse the URL manually to pass it toClickhouseCluster
.The text was updated successfully, but these errors were encountered: