Move stor commands to category Database (#11315)

Fixes #11309
This commit is contained in:
Hofer-Julian 2023-12-13 16:24:16 +01:00 committed by GitHub
parent d43f4253e8
commit 76482cc1b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 11 deletions

View File

@ -24,7 +24,7 @@ impl Command for QueryDb {
SyntaxShape::String,
"SQL to execute against the database",
)
.category(Category::Custom("database".into()))
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -17,7 +17,7 @@ impl Command for SchemaDb {
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_output_types(vec![(Type::Any, Type::Any)])
.category(Category::Custom("database".into()))
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -31,7 +31,7 @@ impl Command for StorCreate {
Some('c'),
)
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -31,7 +31,7 @@ impl Command for StorDelete {
Some('w'),
)
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -25,7 +25,7 @@ impl Command for StorExport {
Some('f'),
)
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -25,7 +25,7 @@ impl Command for StorImport {
Some('f'),
)
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -31,7 +31,7 @@ impl Command for StorInsert {
Some('d'),
)
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -20,7 +20,7 @@ impl Command for StorOpen {
Type::Custom("sqlite-in-memory".into()),
)])
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -17,7 +17,7 @@ impl Command for StorReset {
Signature::build("stor reset")
.input_output_types(vec![(Type::Nothing, Type::Table(vec![]))])
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -15,7 +15,7 @@ impl Command for Stor {
fn signature(&self) -> Signature {
Signature::build("stor")
.category(Category::Strings)
.category(Category::Database)
.input_output_types(vec![(Type::Nothing, Type::String)])
}

View File

@ -37,7 +37,7 @@ impl Command for StorUpdate {
Some('w'),
)
.allow_variants_without_examples(true)
.category(Category::Math)
.category(Category::Database)
}
fn usage(&self) -> &str {

View File

@ -46,6 +46,7 @@ pub enum Category {
Conversions,
Core,
Custom(String),
Database,
Date,
Debug,
Default,
@ -78,6 +79,7 @@ impl std::fmt::Display for Category {
Category::Conversions => "conversions",
Category::Core => "core",
Category::Custom(name) => name,
Category::Database => "database",
Category::Date => "date",
Category::Debug => "debug",
Category::Default => "default",