mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 08:34:13 +02:00
remove db-sqlx feature
This commit is contained in:
parent
2ac14d7aed
commit
10b7d8eb56
4 changed files with 125 additions and 234 deletions
11
src/lib.rs
11
src/lib.rs
|
|
@ -281,14 +281,3 @@ impl Database {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "db-sqlx")]
|
||||
impl TryFrom<Database> for sqlx::any::AnyConnectOptions {
|
||||
type Error = sqlx::Error;
|
||||
|
||||
fn try_from(cfg: Database) -> Result<Self, Self::Error> {
|
||||
use std::str::FromStr;
|
||||
|
||||
sqlx::any::AnyConnectOptions::from_str(&cfg.url())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue