File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ enum Cli {
1515async fn main ( ) {
1616 sqlx_cli:: maybe_apply_dotenv ( ) ;
1717
18+ sqlx:: any:: install_default_drivers ( ) ;
19+
1820 let Cli :: Sqlx ( opt) = Cli :: parse ( ) ;
1921
2022 if let Err ( error) = sqlx_cli:: run ( opt) . await {
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ async fn main() {
77 // Checks for `--no-dotenv` before parsing.
88 sqlx_cli:: maybe_apply_dotenv ( ) ;
99
10+ sqlx:: any:: install_default_drivers ( ) ;
11+
1012 let opt = Opt :: parse ( ) ;
1113
1214 // no special handling here
Original file line number Diff line number Diff line change @@ -204,8 +204,6 @@ where
204204 F : FnMut ( & ' a str ) -> Fut ,
205205 Fut : Future < Output = sqlx:: Result < T > > + ' a ,
206206{
207- sqlx:: any:: install_default_drivers ( ) ;
208-
209207 let db_url = opts. expect_db_url ( ) ?;
210208
211209 backoff:: future:: retry (
You can’t perform that action at this time.
0 commit comments