File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ async fn main() -> Result<()> {
44
44
let ext = & CLI_ARGS . ext ;
45
45
46
46
info ! ( "Scanning {:?} for SQLs with extension {:?}" , source_folder, ext) ;
47
+
48
+ // If CLI_ARGS.generate_types is true, it will clear the single TS file so `execute` will generate a new one from scratch
49
+ clear_single_ts_file_if_exists ( ) ?;
47
50
48
51
let files = scan_folder ( source_folder, ext) ;
49
52
if files. is_empty ( ) {
@@ -54,9 +57,6 @@ async fn main() -> Result<()> {
54
57
std:: process:: exit ( 0 ) ;
55
58
}
56
59
57
- // If CLI_ARGS.generate_types is true, it will clear the single TS file so `execute` will generate a new one from scratch
58
- clear_single_ts_file_if_exists ( ) ?;
59
-
60
60
for file_path in files. iter ( ) {
61
61
let ( sqls, handler) = parse_source ( file_path) ?;
62
62
let failed = execute ( & sqls, & handler) . await ?;
You can’t perform that action at this time.
0 commit comments