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