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