99 TableDiffer ,
1010 DEFAULT_BISECTION_THRESHOLD ,
1111 DEFAULT_BISECTION_FACTOR ,
12- parse_table_name ,
1312)
14- from .database import connect_to_uri , parse_table_name
13+ from .databases . connect import connect_to_uri
1514from .parse_time import parse_time_before_now , UNITS_STR , ParseError
1615
1716import rich
5150@click .option ("--max-age" , default = None , help = "Considers only rows younger than specified. See --min-age." )
5251@click .option ("-s" , "--stats" , is_flag = True , help = "Print stats instead of a detailed diff" )
5352@click .option ("-d" , "--debug" , is_flag = True , help = "Print debug info" )
54- @click .option ("--json" , ' json_output' , is_flag = True , help = "Print JSONL output for machine readability" )
53+ @click .option ("--json" , " json_output" , is_flag = True , help = "Print JSONL output for machine readability" )
5554@click .option ("-v" , "--verbose" , is_flag = True , help = "Print extra info" )
5655@click .option ("-i" , "--interactive" , is_flag = True , help = "Confirm queries, implies --debug" )
5756@click .option ("--keep-column-case" , is_flag = True , help = "Don't use the schema to fix the case of given column names." )
@@ -104,7 +103,7 @@ def main(
104103 try :
105104 threads = int (threads )
106105 except ValueError :
107- logger .error ("Error: threads must be a number, 'auto', or 'serial'." )
106+ logging .error ("Error: threads must be a number, 'auto', or 'serial'." )
108107 return
109108 if threads < 1 :
110109 logging .error ("Error: threads must be >= 1" )
@@ -129,8 +128,8 @@ def main(
129128 logging .error ("Error while parsing age expression: %s" % e )
130129 return
131130
132- table1 = TableSegment (db1 , parse_table_name (table1_name ), key_column , update_column , columns , ** options )
133- table2 = TableSegment (db2 , parse_table_name (table2_name ), key_column , update_column , columns , ** options )
131+ table1 = TableSegment (db1 , db1 . parse_table_name (table1_name ), key_column , update_column , columns , ** options )
132+ table2 = TableSegment (db2 , db2 . parse_table_name (table2_name ), key_column , update_column , columns , ** options )
134133
135134 differ = TableDiffer (
136135 bisection_factor = bisection_factor ,
0 commit comments