sql_cli/
lib.rs

1// New module structure (gradually moving files here)
2pub mod analysis;
3pub mod api;
4pub mod benchmarks;
5pub mod chart;
6pub mod cli;
7pub mod config;
8pub mod core;
9pub mod data;
10pub mod debug;
11pub mod debug_trace;
12pub mod execution_plan;
13pub mod handlers;
14pub mod non_interactive;
15pub mod output;
16pub mod query_plan;
17pub mod redis_cache_module;
18pub mod refactoring;
19pub mod services;
20pub mod sql;
21pub mod state;
22pub mod ui;
23pub mod utils;
24pub mod web;
25pub mod widgets;
26
27// Existing flat structure (to be gradually moved to modules above)
28pub mod api_client;
29// pub mod app_paths; // Moved to utils/
30pub mod buffer;
31pub mod buffer_handler;
32// pub mod cache; // Moved to sql/
33// pub mod cell_renderer; // Moved to ui/
34// pub mod config; // Moved to config module
35// pub mod csv_datasource; // Moved to data/
36// pub mod csv_fixes; // Moved to data/
37// pub mod cursor_aware_parser; // Moved to sql/
38pub mod cursor_operations;
39// pub mod data_exporter; // Moved to data/
40// pub mod data_provider; // Moved to data/
41// pub mod datasource_adapter; // Moved to data/
42// pub mod datasource_trait; // Moved to data/
43// pub mod datatable; // Moved to data/
44// pub mod datatable_buffer; // Moved to data/
45// pub mod datatable_converter; // Moved to data/
46// pub mod datatable_loaders; // Moved to data/
47// pub mod datatable_view; // Moved to data/
48// pub mod debouncer; // Moved to utils/
49// pub mod debug_info; // Moved to utils/
50// pub mod debug_service; // Moved to utils/
51// pub mod debug_widget; // Moved to widgets/
52// pub mod dual_logging; // Moved to utils/
53pub mod dynamic_schema;
54// pub mod editor_widget; // Moved to widgets/
55pub mod global_state;
56// pub mod help_widget; // Moved to widgets/
57pub mod history;
58pub mod history_protection;
59// pub mod history_widget; // Moved to widgets/
60// pub mod hybrid_parser; // Moved to sql/
61pub mod input_manager;
62// pub mod key_indicator; // Moved to ui/
63// pub mod logging; // Moved to utils/
64// pub mod modern_input; // Removed - experimental
65// pub mod modern_tui; // Moved to ui/
66// pub mod parser; // Moved to sql/
67// pub mod recursive_parser; // Moved to sql/
68// pub mod schema_config; // Moved to config/
69// pub mod search_modes_widget; // Moved to widgets/
70pub mod service_container;
71// pub mod sql_highlighter; // Moved to sql/
72pub mod state_manager;
73// pub mod stats_widget; // Moved to widgets/
74pub mod virtual_table;
75// pub mod where_ast; // Moved to sql/
76// pub mod where_parser; // Moved to sql/
77pub mod widget_traits;
78pub mod yank_manager;
79
80// New refactored modules for enhanced_tui decomposition
81pub mod action_handler;
82pub mod app_state_container;
83pub mod column_manager;
84pub mod completion_manager;
85pub mod cursor_manager;
86// pub mod data_analyzer; // Moved to data/
87pub mod help_text;
88pub mod history_manager;
89// pub mod key_bindings; // Moved to config/
90// pub mod key_chord_handler; // Moved to ui/
91// pub mod key_sequence_renderer; // Moved to ui/
92// pub mod key_dispatcher; // Moved to ui/
93pub mod search_filter;
94pub mod text_navigation;
95// pub mod tui_renderer; // Moved to ui/
96// pub mod tui_state; // Moved to ui/
97// pub mod data_manager; // TODO: Fix QueryResponse field access
98
99// Re-export widgets for backward compatibility
100pub use widgets::debug_widget;
101pub use widgets::editor_widget;
102pub use widgets::help_widget;
103pub use widgets::history_widget;
104pub use widgets::search_modes_widget;
105pub use widgets::stats_widget;
106
107// Re-export data modules for backward compatibility
108pub use data::csv_datasource;
109pub use data::csv_fixes;
110pub use data::data_analyzer;
111pub use data::data_exporter;
112pub use data::data_provider;
113pub use data::datasource_adapter;
114pub use data::datasource_trait;
115pub use data::datatable;
116pub use data::datatable_buffer;
117pub use data::datatable_converter;
118pub use data::datatable_loaders;
119pub use data::datatable_view;
120
121// Re-export UI modules for backward compatibility
122pub use ui::enhanced_tui;
123pub use ui::key_handling::dispatcher as key_dispatcher;
124pub use ui::rendering::tui_renderer;
125pub use ui::state::tui_state;
126pub use ui::tui_app;
127
128// Re-export SQL modules for backward compatibility
129pub use sql::cache;
130pub use sql::cursor_aware_parser;
131pub use sql::hybrid_parser;
132pub use sql::parser;
133pub use sql::recursive_parser;
134pub use sql::smart_parser;
135pub use sql::sql_highlighter;
136pub use sql::where_ast;
137pub use sql::where_parser;
138
139// Re-export utils modules for backward compatibility
140pub use utils::app_paths;
141pub use utils::debouncer;
142pub use utils::debug_helpers;
143pub use utils::debug_info;
144pub use utils::debug_service;
145pub use utils::dual_logging;
146pub use utils::logging;
147
148// Re-export config modules for backward compatibility
149pub use config::config as config_module;
150pub use config::key_bindings;
151pub use config::schema_config;