cli/data/import_v2.rs
1// Copyright 2023 Greptime Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Import V2 module.
16//!
17//! This module provides the V2 implementation of database import functionality,
18//! featuring:
19//! - DDL-based schema import
20//! - Dry-run mode for verification
21//!
22//! # Example
23//!
24//! ```bash
25//! # Dry-run import (verify without executing)
26//! greptime cli data import-v2 \
27//! --addr 127.0.0.1:4000 \
28//! --from file:///tmp/snapshot \
29//! --dry-run
30//!
31//! # Actual import
32//! greptime cli data import-v2 \
33//! --addr 127.0.0.1:4000 \
34//! --from s3://bucket/snapshots/prod-20250101
35//! ```
36
37mod command;
38pub mod error;
39pub mod executor;
40
41pub use command::ImportV2Command;