mirror of
https://github.com/nushell/nushell.git
synced 2025-07-07 18:07:02 +02:00
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:
@ -7,10 +7,10 @@ use nu_protocol::{
|
||||
};
|
||||
use std::io::BufReader;
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
use crate::database::SQLiteDatabase;
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
use nu_protocol::IntoPipelineData;
|
||||
|
||||
#[cfg(unix)]
|
||||
@ -107,7 +107,7 @@ impl Command for Open {
|
||||
Vec::new(),
|
||||
))
|
||||
} else {
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
if !raw {
|
||||
let res = SQLiteDatabase::try_from_path(path, arg_span)
|
||||
.map(|db| db.into_value(call.head).into_pipeline_data());
|
||||
|
Reference in New Issue
Block a user