Skip to main content

nodedb_sql/planner/select/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! SELECT query planning: FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY → LIMIT.
4//!
5//! This is the main entry point for SELECT statement conversion. It detects
6//! search patterns (vector, text, hybrid, spatial) directly from the AST
7//! instead of reverse-engineering an optimizer's output.
8
9mod comma_lateral;
10mod cte_catalog;
11mod derived_from;
12mod derived_output;
13mod entry;
14mod entry_ann;
15pub mod helpers;
16mod limit;
17mod order_by;
18mod post_process;
19mod query_tail;
20mod select_stmt;
21mod text_call;
22mod text_options;
23mod where_search;
24
25pub(crate) use cte_catalog::CteCatalog;
26pub(crate) use derived_output::rekey_join_output;
27pub use entry::{plan_query, plan_statement_query};
28pub use helpers::{
29    convert_projection, convert_where_to_filters, extract_float, extract_func_args,
30    extract_string_literal, qualified_name,
31};
32pub(crate) use order_by::select_output_aliases;
33pub(crate) use select_stmt::has_aggregation;