migration to sqlite!

This commit is contained in:
lda committed 2026-04-26 04:18:33 +07:00 Verified
1 parent 1a3a45cde2
commit 65a0891308
12 files changed
+1612 -400

No files matched your search

+14
View File
@@ -43,6 +43,8 @@ pub enum Command {
RevokeAgent(RevokeAgentArgs),
/// Print state backend stats.
StateStats(StateStatsArgs),
/// Import a legacy sled state directory into a SQLite state file.
ImportSledState(ImportSledStateArgs),
/// Send SIGHUP to an already-running daemon.
Reload(ReloadArgs),
}
@@ -236,6 +238,18 @@ pub struct StateStatsArgs {
pub target: AdminTargetArgs,
}
#[derive(Args)]
pub struct ImportSledStateArgs {
#[arg(long)]
pub from_sled_state: PathBuf,
#[arg(long)]
pub to_state_file: PathBuf,
#[arg(long)]
pub force: bool,
}
#[derive(Args)]
pub struct ReloadArgs {
#[arg(long, default_value = DEFAULT_PID_FILE)]