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