Fix redundant prefix in admin query raw command suite.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-09-27 09:36:23 +00:00
parent 41ff81f843
commit 2417764771

View File

@@ -16,16 +16,16 @@ use tuwunel_service::Services;
use crate::{admin_command, admin_command_dispatch}; use crate::{admin_command, admin_command_dispatch};
#[admin_command_dispatch] #[admin_command_dispatch(handler_prefix = "raw")]
#[derive(Debug, Subcommand)] #[derive(Debug, Subcommand)]
#[allow(clippy::enum_variant_names)] #[allow(clippy::enum_variant_names)]
/// Query tables from database /// Query tables from database
pub(crate) enum RawCommand { pub(crate) enum RawCommand {
/// - List database maps /// - List database maps
RawMaps, Maps,
/// - Raw database query /// - Raw database query
RawGet { Get {
/// Map name /// Map name
map: String, map: String,
@@ -38,7 +38,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database delete (for string keys) /// - Raw database delete (for string keys)
RawDel { Del {
/// Map name /// Map name
map: String, map: String,
@@ -47,7 +47,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database keys iteration /// - Raw database keys iteration
RawKeys { Keys {
/// Map name /// Map name
map: String, map: String,
@@ -56,7 +56,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database key size breakdown /// - Raw database key size breakdown
RawKeysSizes { KeysSizes {
/// Map name /// Map name
map: Option<String>, map: Option<String>,
@@ -65,7 +65,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database keys total bytes /// - Raw database keys total bytes
RawKeysTotal { KeysTotal {
/// Map name /// Map name
map: Option<String>, map: Option<String>,
@@ -74,7 +74,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database values size breakdown /// - Raw database values size breakdown
RawValsSizes { ValsSizes {
/// Map name /// Map name
map: Option<String>, map: Option<String>,
@@ -83,7 +83,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database values total bytes /// - Raw database values total bytes
RawValsTotal { ValsTotal {
/// Map name /// Map name
map: Option<String>, map: Option<String>,
@@ -92,7 +92,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database items iteration /// - Raw database items iteration
RawIter { Iter {
/// Map name /// Map name
map: String, map: String,
@@ -101,7 +101,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database keys iteration /// - Raw database keys iteration
RawKeysFrom { KeysFrom {
/// Map name /// Map name
map: String, map: String,
@@ -114,7 +114,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database items iteration /// - Raw database items iteration
RawIterFrom { IterFrom {
/// Map name /// Map name
map: String, map: String,
@@ -127,7 +127,7 @@ pub(crate) enum RawCommand {
}, },
/// - Raw database record count /// - Raw database record count
RawCount { Count {
/// Map name /// Map name
map: Option<String>, map: Option<String>,
@@ -165,7 +165,7 @@ pub(crate) enum RawCommand {
} }
#[admin_command] #[admin_command]
pub(super) async fn compact( pub(super) async fn raw_compact(
&self, &self,
map: Option<Vec<String>>, map: Option<Vec<String>>,
start: Option<String>, start: Option<String>,