refactor: update surrealdb client usage to support 'any' engine type

This commit is contained in:
MythEclipse
2025-06-29 23:23:18 +07:00
parent b88ecd1361
commit 02be09506a
7 changed files with 31 additions and 22 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
use serde::{Deserialize, Serialize};
use surrealdb::{
engine::{local::Db, remote::ws::Client},
engine::local::Db,
engine::any::Any,
Surreal,
};
use utoipa::{IntoParams, ToSchema};
@@ -54,7 +55,7 @@ pub struct ResponseListSuccessDto<T: Serialize> {
pub meta: Option<MetaResponseDto>,
}
pub type SurrealWsClient = Surreal<Client>;
pub type SurrealWsClient = Surreal<Any>;
pub type SurrealMemClient = Surreal<Db>;
#[derive(Clone)]