Feature cleanup (#7182)

Following up on #7180 with some feature cleanup:

- Move the `database` feature from `plugin` to `default`
- Rename the `database` feature to `sqlite`
- Remove `--features=extra` from a lot of scripts etc. 
- No need to specify this, the `extra` feature is now the same as the
default feature set
- Remove the now-redundant 2nd Ubuntu test run
This commit is contained in:
Reilly Wood
2022-11-22 16:58:11 -08:00
committed by GitHub
parent e0577e15f2
commit efdfeac55e
20 changed files with 52 additions and 50 deletions

View File

@ -1,6 +1,6 @@
use nu_test_support::{nu, pipeline};
#[cfg(feature = "database")]
#[cfg(feature = "sqlite")]
#[test]
fn can_query_single_table() {
let actual = nu!(
@ -16,7 +16,7 @@ fn can_query_single_table() {
assert_eq!(actual.out, "4");
}
#[cfg(feature = "database")]
#[cfg(feature = "sqlite")]
#[test]
fn invalid_sql_fails() {
let actual = nu!(
@ -30,7 +30,7 @@ fn invalid_sql_fails() {
assert!(actual.err.contains("syntax error"));
}
#[cfg(feature = "database")]
#[cfg(feature = "sqlite")]
#[test]
fn invalid_input_fails() {
let actual = nu!(