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 9
9
from .table_segment import TableSegment
10
10
from .utils import eval_name_template
11
11
12
+
12
13
def connect_to_table (
13
14
db_info : Union [str , dict ],
14
15
table_name : Union [DbPath , str ],
Original file line number Diff line number Diff line change 22
22
)
23
23
from ..abcs .mixins import AbstractMixin_MD5 , AbstractMixin_NormalizeValue
24
24
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
+
26
28
27
29
@import_helper ("clickhouse" )
28
30
def import_clickhouse ():
Original file line number Diff line number Diff line change @@ -92,10 +92,7 @@ class Connect:
92
92
93
93
def __init__ (self , database_by_scheme : Dict [str , Database ]):
94
94
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 ()}
99
96
self .conn_cache = WeakCache ()
100
97
101
98
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