sql_cli/
lib.rs

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