mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 05:26:50 +00:00
@@ -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>)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user