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 {
15
15
async fn main ( ) {
16
16
sqlx_cli:: maybe_apply_dotenv ( ) ;
17
17
18
+ sqlx:: any:: install_default_drivers ( ) ;
19
+
18
20
let Cli :: Sqlx ( opt) = Cli :: parse ( ) ;
19
21
20
22
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() {
7
7
// Checks for `--no-dotenv` before parsing.
8
8
sqlx_cli:: maybe_apply_dotenv ( ) ;
9
9
10
+ sqlx:: any:: install_default_drivers ( ) ;
11
+
10
12
let opt = Opt :: parse ( ) ;
11
13
12
14
// no special handling here
Original file line number Diff line number Diff line change @@ -204,8 +204,6 @@ where
204
204
F : FnMut ( & ' a str ) -> Fut ,
205
205
Fut : Future < Output = sqlx:: Result < T > > + ' a ,
206
206
{
207
- sqlx:: any:: install_default_drivers ( ) ;
208
-
209
207
let db_url = opts. expect_db_url ( ) ?;
210
208
211
209
backoff:: future:: retry (
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pub struct CachingDescribeBlocking<DB: DatabaseExt> {
33
33
34
34
#[ allow( dead_code) ]
35
35
impl < DB : DatabaseExt > CachingDescribeBlocking < DB > {
36
+ #[ allow( clippy:: new_without_default, reason = "internal API" ) ]
36
37
pub const fn new ( ) -> Self {
37
38
CachingDescribeBlocking {
38
39
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>;
27
27
pub type Result < T > = std:: result:: Result < T , Error > ;
28
28
29
29
mod common;
30
- mod database;
30
+ pub mod database;
31
31
32
32
#[ cfg( feature = "derive" ) ]
33
33
pub mod derives;
You can’t perform that action at this time.
0 commit comments