Skip to content

Commit

Permalink
chore: reorder mod and use
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiachun committed Aug 29, 2024
1 parent b007649 commit abfe6a8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
26 changes: 13 additions & 13 deletions src/cmd/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use async_trait::async_trait;
use bench::BenchTableMetadataCommand;
use clap::Parser;
use common_telemetry::logging::{LoggingOptions, TracingOptions};
pub use repl::Repl;
use tracing_appender::non_blocking::WorkerGuard;

use self::export::ExportCommand;
use crate::cli::import::ImportCommand;
use crate::error::Result;
use crate::options::GlobalOptions;
use crate::App;

mod bench;

// Wait for https://github.com/GreptimeTeam/greptimedb/issues/2373
Expand All @@ -39,6 +26,19 @@ mod import;
#[allow(unused)]
mod repl;

use async_trait::async_trait;
use bench::BenchTableMetadataCommand;
use clap::Parser;
use common_telemetry::logging::{LoggingOptions, TracingOptions};
pub use repl::Repl;
use tracing_appender::non_blocking::WorkerGuard;

use self::export::ExportCommand;
use crate::cli::import::ImportCommand;
use crate::error::Result;
use crate::options::GlobalOptions;
use crate::App;

pub const APP_NAME: &str = "greptime-cli";

#[async_trait]
Expand Down
22 changes: 11 additions & 11 deletions src/operator/src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

mod admin;
mod copy_database;
mod copy_table_from;
mod copy_table_to;
mod ddl;
mod describe;
mod dml;
mod set;
mod show;
mod tql;

use std::collections::HashMap;
use std::sync::Arc;

Expand Down Expand Up @@ -58,17 +69,6 @@ use crate::error::{
use crate::insert::InserterRef;
use crate::statement::copy_database::{COPY_DATABASE_TIME_END_KEY, COPY_DATABASE_TIME_START_KEY};

mod admin;
mod copy_database;
mod copy_table_from;
mod copy_table_to;
mod ddl;
mod describe;
mod dml;
mod set;
mod show;
mod tql;

#[derive(Clone)]
pub struct StatementExecutor {
catalog_manager: CatalogManagerRef,
Expand Down

0 comments on commit abfe6a8

Please sign in to comment.