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