File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
sqlx-postgres/src/options Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pub struct PgConnectOptions {
20
20
pub ( crate ) socket : Option < PathBuf > ,
21
21
pub ( crate ) username : String ,
22
22
pub ( crate ) password : Option < String > ,
23
+ pub ( crate ) passfile_paths : Vec < PathBuf > ,
23
24
pub ( crate ) database : Option < String > ,
24
25
pub ( crate ) ssl_mode : PgSslMode ,
25
26
pub ( crate ) ssl_root_cert : Option < CertificateInput > ,
@@ -74,6 +75,7 @@ impl PgConnectOptions {
74
75
socket : None ,
75
76
username,
76
77
password : var ( "PGPASSWORD" ) . ok ( ) ,
78
+ passfile_paths : vec ! [ ] ,
77
79
database,
78
80
ssl_root_cert : var ( "PGSSLROOTCERT" ) . ok ( ) . map ( CertificateInput :: from) ,
79
81
ssl_client_cert : var ( "PGSSLCERT" ) . ok ( ) . map ( CertificateInput :: from) ,
@@ -100,7 +102,7 @@ impl PgConnectOptions {
100
102
self . port ,
101
103
& self . username ,
102
104
self . database . as_deref ( ) ,
103
- & [ ] as & [ & Path ] ,
105
+ & self . passfile_paths ,
104
106
) ;
105
107
}
106
108
You can’t perform that action at this time.
0 commit comments