Closed fengjiachun closed 1 month ago
This update introduces a new feature for exporting database data in our CLI tool. A DatabaseData
variant has been added to the ExportTarget
enum, replacing the deprecated TableData
. An asynchronous function, export_database_data
, has been implemented to facilitate this export, and the do_work
method in the Tool
implementation has been updated to handle the DatabaseData
target. Additionally, new fields for specifying a time range enhance the export command's functionality.
File | Change Summary |
---|---|
src/cmd/src/cli/export.rs |
Added DatabaseData variant to ExportTarget enum with deprecation note for TableData , implemented export_database_data function, updated do_work function in Tool implementation to handle DatabaseData , and added start_time and end_time fields to ExportCommand . |
sequenceDiagram
participant User
participant CLI
participant Export
User->>CLI: Execute export command
CLI->>Export: Call do_work with DatabaseData target
Export->>Export: Check target type
Export-->>CLI: Return task processing result
CLI-->>User: Display export completion status
In lines of code, new paths arise,
DatabaseData now with clear skies.
Exporting data swift and neat,
The CLI tool, a coder's treat.
Deprecated ways now bow and part,
A fresh new start, a work of art. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 15.90909%
with 74 lines
in your changes missing coverage. Please review.
Project coverage is 84.84%. Comparing base (
e39f49f
) to head (da0207e
). Report is 4 commits behind head on main.
@WenyXu @waynexia PTAL
@fengjiachun Good job. The task #4276 should be started!
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
CLI: support exporting database data with a time range
Checklist
Summary by CodeRabbit
New Features
DatabaseData
option.TableData
export target.Enhancements