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