We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90ef77c commit d402c38Copy full SHA for d402c38
plugins/sql/src/wrapper.rs
@@ -104,6 +104,11 @@ impl DbPool {
104
}
105
Ok(Self::Postgres(Pool::connect(conn_url).await?))
106
107
+ #[cfg(not(any(feature = "sqlite", feature = "postgres", feature = "mysql")))]
108
+ _ => Err(crate::Error::InvalidDbUrl(format!(
109
+ "{conn_url} - No database driver enabled!"
110
+ ))),
111
+ #[cfg(any(feature = "sqlite", feature = "postgres", feature = "mysql"))]
112
_ => Err(crate::Error::InvalidDbUrl(conn_url.to_string())),
113
114
0 commit comments