File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ use url::Url;
51
51
/// run and execute SQL statements and commands, against a context with the given print options
52
52
pub async fn exec_from_commands (
53
53
ctx : & mut SessionContext ,
54
- print_options : & PrintOptions ,
55
54
commands : Vec < String > ,
55
+ print_options : & PrintOptions ,
56
56
) {
57
57
for sql in commands {
58
58
match exec_and_print ( ctx, print_options, sql) . await {
@@ -105,8 +105,8 @@ pub async fn exec_from_lines(
105
105
}
106
106
107
107
pub async fn exec_from_files (
108
- files : Vec < String > ,
109
108
ctx : & mut SessionContext ,
109
+ files : Vec < String > ,
110
110
print_options : & PrintOptions ,
111
111
) {
112
112
let files = files
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ pub async fn main() -> Result<()> {
216
216
217
217
if commands. is_empty ( ) && files. is_empty ( ) {
218
218
if !rc. is_empty ( ) {
219
- exec:: exec_from_files ( rc , & mut ctx, & print_options) . await
219
+ exec:: exec_from_files ( & mut ctx, rc , & print_options) . await
220
220
}
221
221
// TODO maybe we can have thiserror for cli but for now let's keep it simple
222
222
return exec:: exec_from_repl ( & mut ctx, & mut print_options)
@@ -225,11 +225,11 @@ pub async fn main() -> Result<()> {
225
225
}
226
226
227
227
if !files. is_empty ( ) {
228
- exec:: exec_from_files ( files , & mut ctx, & print_options) . await ;
228
+ exec:: exec_from_files ( & mut ctx, files , & print_options) . await ;
229
229
}
230
230
231
231
if !commands. is_empty ( ) {
232
- exec:: exec_from_commands ( & mut ctx, & print_options , commands ) . await ;
232
+ exec:: exec_from_commands ( & mut ctx, commands , & print_options ) . await ;
233
233
}
234
234
235
235
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments