16
16
from .dbt import dbt_diff
17
17
from .utils import eval_name_template , remove_password_from_url , safezip , match_like
18
18
from .diff_tables import Algorithm
19
- from .hashdiff_tables import (
20
- HashDiffer ,
21
- DEFAULT_BISECTION_THRESHOLD ,
22
- DEFAULT_BISECTION_FACTOR ,
23
- )
19
+ from .hashdiff_tables import HashDiffer , DEFAULT_BISECTION_THRESHOLD , DEFAULT_BISECTION_FACTOR
24
20
from .joindiff_tables import TABLE_WRITE_LIMIT , JoinDiffer
25
21
from .table_segment import TableSegment
26
22
from .databases import connect
@@ -103,20 +99,9 @@ def write_usage(self, prog: str, args: str = "", prefix: Optional[str] = None) -
103
99
@click .argument ("database2" , required = False )
104
100
@click .argument ("table2" , required = False )
105
101
@click .option (
106
- "-k" ,
107
- "--key-columns" ,
108
- default = [],
109
- multiple = True ,
110
- help = "Names of primary key columns. Default='id'." ,
111
- metavar = "NAME" ,
112
- )
113
- @click .option (
114
- "-t" ,
115
- "--update-column" ,
116
- default = None ,
117
- help = "Name of updated_at/last_updated column" ,
118
- metavar = "NAME" ,
102
+ "-k" , "--key-columns" , default = [], multiple = True , help = "Names of primary key columns. Default='id'." , metavar = "NAME"
119
103
)
104
+ @click .option ("-t" , "--update-column" , default = None , help = "Name of updated_at/last_updated column" , metavar = "NAME" )
120
105
@click .option (
121
106
"-c" ,
122
107
"--columns" ,
@@ -127,13 +112,7 @@ def write_usage(self, prog: str, args: str = "", prefix: Optional[str] = None) -
127
112
"Accepts a name or a pattern like in SQL. Example: -c col% -c another_col" ,
128
113
metavar = "NAME" ,
129
114
)
130
- @click .option (
131
- "-l" ,
132
- "--limit" ,
133
- default = None ,
134
- help = "Maximum number of differences to find" ,
135
- metavar = "NUM" ,
136
- )
115
+ @click .option ("-l" , "--limit" , default = None , help = "Maximum number of differences to find" , metavar = "NUM" )
137
116
@click .option (
138
117
"--bisection-factor" ,
139
118
default = None ,
@@ -162,27 +141,15 @@ def write_usage(self, prog: str, args: str = "", prefix: Optional[str] = None) -
162
141
metavar = "AGE" ,
163
142
)
164
143
@click .option (
165
- "--max-age" ,
166
- default = None ,
167
- help = "Considers only rows younger than specified. See --min-age." ,
168
- metavar = "AGE" ,
144
+ "--max-age" , default = None , help = "Considers only rows younger than specified. See --min-age." , metavar = "AGE"
169
145
)
170
146
@click .option ("-s" , "--stats" , is_flag = True , help = "Print stats instead of a detailed diff" )
171
147
@click .option ("-d" , "--debug" , is_flag = True , help = "Print debug info" )
172
- @click .option (
173
- "--json" ,
174
- "json_output" ,
175
- is_flag = True ,
176
- help = "Print JSONL output for machine readability" ,
177
- )
148
+ @click .option ("--json" , "json_output" , is_flag = True , help = "Print JSONL output for machine readability" )
178
149
@click .option ("-v" , "--verbose" , is_flag = True , help = "Print extra info" )
179
150
@click .option ("--version" , is_flag = True , help = "Print version info and exit" )
180
151
@click .option ("-i" , "--interactive" , is_flag = True , help = "Confirm queries, implies --debug" )
181
- @click .option (
182
- "--no-tracking" ,
183
- is_flag = True ,
184
- help = "data-diff sends home anonymous usage data. Use this to disable it." ,
185
- )
152
+ @click .option ("--no-tracking" , is_flag = True , help = "data-diff sends home anonymous usage data. Use this to disable it." )
186
153
@click .option (
187
154
"--case-sensitive" ,
188
155
is_flag = True ,
@@ -225,12 +192,7 @@ def write_usage(self, prog: str, args: str = "", prefix: Optional[str] = None) -
225
192
help = "An additional 'where' expression to restrict the search space. Beware of SQL Injection!" ,
226
193
metavar = "EXPR" ,
227
194
)
228
- @click .option (
229
- "-a" ,
230
- "--algorithm" ,
231
- default = Algorithm .AUTO .value ,
232
- type = click .Choice ([i .value for i in Algorithm ]),
233
- )
195
+ @click .option ("-a" , "--algorithm" , default = Algorithm .AUTO .value , type = click .Choice ([i .value for i in Algorithm ]))
234
196
@click .option (
235
197
"--conf" ,
236
198
default = None ,
0 commit comments