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