mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 16:44:09 +02:00
default to sqlite
This commit is contained in:
parent
0b6614c6e0
commit
7445dda2ff
2 changed files with 1 additions and 4 deletions
|
|
@ -85,8 +85,6 @@ pub enum Error {
|
|||
ReadFailed(std::io::Error, PathBuf),
|
||||
#[error("invalid database configuration: {0}")]
|
||||
InvalidDb(#[from] DbError),
|
||||
#[error("no database configuration")]
|
||||
NoDb,
|
||||
#[error("Invalid redis configuration")]
|
||||
Redis,
|
||||
#[error("`overwrite.cli.url` not set`")]
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ fn parse_db_options(parsed: &Value) -> Result<Database> {
|
|||
ssl_options,
|
||||
})
|
||||
}
|
||||
Some("sqlite3" | "sqlite") => {
|
||||
Some("sqlite3" | "sqlite") | None => {
|
||||
let data_dir = parsed["datadirectory"]
|
||||
.as_str()
|
||||
.ok_or(DbError::NoDataDirectory)?;
|
||||
|
|
@ -281,7 +281,6 @@ fn parse_db_options(parsed: &Value) -> Result<Database> {
|
|||
})
|
||||
}
|
||||
Some(ty) => Err(Error::InvalidDb(DbError::Unsupported(ty.into()))),
|
||||
None => Err(Error::NoDb),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue