mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 16:54:58 +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:
@ -193,7 +193,7 @@ fn features_enabled() -> Vec<String> {
|
||||
names.push("trash".to_string());
|
||||
}
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
{
|
||||
names.push("database".to_string());
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ pub fn create_default_context() -> EngineState {
|
||||
|
||||
// Database-related
|
||||
// Adds all related commands to query databases
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
add_database_decls(&mut working_set);
|
||||
|
||||
// Core
|
||||
|
@ -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());
|
||||
|
@ -62,8 +62,8 @@ mod dataframe;
|
||||
#[cfg(feature = "dataframe")]
|
||||
pub use dataframe::*;
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
mod database;
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
#[cfg(feature = "sqlite")]
|
||||
pub use database::*;
|
||||
|
Reference in New Issue
Block a user