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