Skip to content

Commit 9090431

Browse files
authored
Align query db description with other database commands (nushell#16680)
<!-- Thank you for improving Nushell! Please, read our contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md --> Closes nushell#10243. `query db` is the only command that doesn't state "SQLite" in the main description (aside from `stor reset`). ## Release notes summary - What our users need to know <!-- This section will be included as part of our release notes. See the contributing guide for more details. Please include only details relevant for users here. Motivation and technical details can be added above or below this section. You may leave this section blank until your PR is finalized. Ask a core team member if you need help filling this section. --> N/A ## Tasks after submitting <!-- Remove any tasks which aren't relevant for your PR, or add your own --> - [ ] Update the [documentation](https://github.com/nushell/nushell.github.io) (although I think this is auto-generated for commands)
1 parent c4dfaca commit 9090431

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/nu-command/src/database/commands/query_db.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ impl Command for QueryDb {
2828
}
2929

3030
fn description(&self) -> &str {
31-
"Query a database using SQL."
31+
"Query a SQLite database with SQL statements."
32+
}
33+
34+
fn extra_description(&self) -> &str {
35+
"This command is only supported for local or in-memory SQLite databases."
3236
}
3337

3438
fn examples(&self) -> Vec<Example<'_>> {

0 commit comments

Comments
 (0)