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