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 6790c50 commit a2ad7bbCopy full SHA for a2ad7bb
src/webserver/database/connect.rs
@@ -8,14 +8,14 @@ use crate::{
8
};
9
use anyhow::Context;
10
use futures_util::future::BoxFuture;
11
+#[cfg(feature = "odbc")]
12
+use sqlx::odbc::OdbcConnectOptions;
13
use sqlx::{
14
any::{Any, AnyConnectOptions, AnyKind},
15
pool::PoolOptions,
16
sqlite::{Function, SqliteConnectOptions, SqliteFunctionCtx},
17
ConnectOptions, Connection, Executor,
18
-#[cfg(feature = "odbc")]
-use sqlx::odbc::OdbcConnectOptions;
19
20
impl Database {
21
pub async fn init(config: &AppConfig) -> anyhow::Result<Self> {
0 commit comments