mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 08:34:13 +02:00
parent
59006e9e8e
commit
39e4ae9a2b
4 changed files with 46 additions and 3 deletions
|
|
@ -216,8 +216,12 @@ impl From<Database> for sqlx::any::AnyConnectOptions {
|
|||
} => {
|
||||
let mut options = PgConnectOptions::default()
|
||||
.database(&database)
|
||||
.username(&username)
|
||||
.password(&password);
|
||||
.username(&username);
|
||||
|
||||
if !password.is_empty() {
|
||||
options = options.password(&password);
|
||||
}
|
||||
|
||||
if matches!(ssl_options, SslOptions::Disabled) {
|
||||
options = options.ssl_mode(PgSslMode::Disable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue