Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2025-07-25 08:18:14 +08:00
parent addc964d56
commit 25a4503285
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -20,9 +20,9 @@ pub mod instance;
pub mod metadata; pub mod metadata;
pub mod sql; pub mod sql;
use std::sync::{Arc, LazyLock};
use rustfs_s3select_api::{QueryResult, server::dbms::DatabaseManagerSystem}; use rustfs_s3select_api::{QueryResult, server::dbms::DatabaseManagerSystem};
use s3s::dto::SelectObjectContentInput; use s3s::dto::SelectObjectContentInput;
use std::sync::{Arc, LazyLock};
use crate::{ use crate::{
execution::{factory::SqlQueryExecutionFactory, scheduler::local::LocalScheduler}, execution::{factory::SqlQueryExecutionFactory, scheduler::local::LocalScheduler},
@@ -68,7 +68,8 @@ pub async fn get_global_db(
components.parser.clone(), components.parser.clone(),
components.query_execution_factory.clone(), components.query_execution_factory.clone(),
components.default_table_provider.clone(), components.default_table_provider.clone(),
).await?; )
.await?;
Ok(Arc::new(db) as Arc<dyn DatabaseManagerSystem + Send + Sync>) Ok(Arc::new(db) as Arc<dyn DatabaseManagerSystem + Send + Sync>)
} }