This repository was archived by the owner on May 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 99from .table_segment import TableSegment
1010from .utils import eval_name_template
1111
12+
1213def connect_to_table (
1314 db_info : Union [str , dict ],
1415 table_name : Union [DbPath , str ],
Original file line number Diff line number Diff line change 2222)
2323from ..abcs .mixins import AbstractMixin_MD5 , AbstractMixin_NormalizeValue
2424
25- DEFAULT_DATABASE = "default" # https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings/#default-database
25+ # https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings/#default-database
26+ DEFAULT_DATABASE = "default"
27+
2628
2729@import_helper ("clickhouse" )
2830def import_clickhouse ():
Original file line number Diff line number Diff line change @@ -92,10 +92,7 @@ class Connect:
9292
9393 def __init__ (self , database_by_scheme : Dict [str , Database ]):
9494 self .database_by_scheme = database_by_scheme
95- self .match_uri_path = {
96- name : MatchUriPath (cls )
97- for name , cls in database_by_scheme .items ()
98- }
95+ self .match_uri_path = {name : MatchUriPath (cls ) for name , cls in database_by_scheme .items ()}
9996 self .conn_cache = WeakCache ()
10097
10198 def connect_to_uri (self , db_uri : str , thread_count : Optional [int ] = 1 ) -> Database :
You can’t perform that action at this time.
0 commit comments