mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Revert query
command to query db
(#6200)
This commit is contained in:
@ -7,8 +7,7 @@ fn can_query_single_table() {
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample.db
|
||||
| into db
|
||||
| query "select * from strings"
|
||||
| query db "select * from strings"
|
||||
| where x =~ ell
|
||||
| length
|
||||
"#
|
||||
@ -24,8 +23,7 @@ fn invalid_sql_fails() {
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample.db
|
||||
| into db
|
||||
| query "select *asdfasdf"
|
||||
| query db "select *asdfasdf"
|
||||
"#
|
||||
));
|
||||
|
||||
@ -38,7 +36,7 @@ fn invalid_input_fails() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
"foo" | into db | query "select * from asdf"
|
||||
"foo" | query db "select * from asdf"
|
||||
"#
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user