mymarilyn / clickhouse-driver

ClickHouse Python Driver with native interface support
https://clickhouse-driver.readthedocs.io
Other
1.19k stars 213 forks source link

Extract Clickhouse URL parsing into a separate function #438

Closed selevit closed 3 weeks ago

selevit commented 2 months ago

Hi, and thanks for this amazing library.

Currently, Client has a from_url static method that creates a client from a URL like clickhouse://user:pass@host/db.

Would be great to provide an API for url parsing, so it's possible to use it with third-party tools, having the same format that clickhouse_driver accepts.

xzkostyan commented 2 months ago

Hi.

Can you provide example of your case?

selevit commented 2 months ago

For example, I use the clickhouse-migrations package for schema migrations, it uses clickhouse_driver under the hood, but doesn't not accept the url.

xzkostyan commented 3 weeks ago

Version 0.2.9 with this change released.