File tree Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Expand file tree Collapse file tree 5 files changed +6
-3
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 (
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pub struct CachingDescribeBlocking<DB: DatabaseExt> {
3333
3434#[ allow( dead_code) ]
3535impl < DB : DatabaseExt > CachingDescribeBlocking < DB > {
36+ #[ allow( clippy:: new_without_default, reason = "internal API" ) ]
3637 pub const fn new ( ) -> Self {
3738 CachingDescribeBlocking {
3839 connections : LazyLock :: new ( || Mutex :: new ( HashMap :: new ( ) ) ) ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub type Error = Box<dyn std::error::Error>;
2727pub type Result < T > = std:: result:: Result < T , Error > ;
2828
2929mod common;
30- mod database;
30+ pub mod database;
3131
3232#[ cfg( feature = "derive" ) ]
3333pub mod derives;
You can’t perform that action at this time.
0 commit comments