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