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