Database commands (#5307)

* database commands

* db commands

* filesystem opens sqlite file

* clippy error

* corrected error in ci file

* removes matrix flag from ci

* flax matrix for clippy

* add conditional compile for tests

* add conditional compile for tests

* correct order of command

* correct error msg

* correct typo
This commit is contained in:
Fernando Herrera
2022-04-24 10:29:21 +01:00
committed by GitHub
parent c20ba95885
commit e94d13da1b
25 changed files with 845 additions and 223 deletions

View File

@ -23,6 +23,11 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
#[cfg(feature = "dataframe")]
add_dataframe_decls(&mut working_set);
// Database-related
// Adds all related commands to query databases
#[cfg(feature = "database")]
add_database_decls(&mut working_set);
// Core
bind_command! {
Alias,
@ -361,11 +366,6 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
ViewSource,
};
// Database-related
bind_command! {
QueryDb
};
// Deprecated
bind_command! {
PivotDeprecated,