Constructs a new [`ShowSelect`] from a query that provides the base data and an optional user-supplied filter, order column, and projection on that data. Note that the query must return a column named `name`, as the filter may implicitly reference this column. Any `ORDER BY` in the query is ignored. `ShowSelects`s are always ordered in ascending order by all columns from left to right unless an o
(
scx: &'a StatementContext,
query: String,
filter: Option<ShowStatementFilter<Aug>>,
order: Option<&str>,
projection: Option<&[&str]>,
)
| 946 | /// ignored. `ShowSelects`s are always ordered in ascending order by all |
| 947 | /// columns from left to right unless an order field is supplied. |
| 948 | fn new( |
| 949 | scx: &'a StatementContext, |
| 950 | query: String, |
| 951 | filter: Option<ShowStatementFilter<Aug>>, |
| 952 | order: Option<&str>, |
| 953 | projection: Option<&[&str]>, |
| 954 | ) -> Result<ShowSelect<'a>, PlanError> { |
| 955 | let (show_select, new_resolved_ids) = |
| 956 | Self::new_with_resolved_ids(scx, query, filter, order, projection)?; |
| 957 | scx.sql_impl_resolved_ids |
| 958 | .lock() |
| 959 | .expect("planning is single-threaded") |
| 960 | .extend_from(&new_resolved_ids); |
| 961 | Ok(show_select) |
| 962 | } |
| 963 | |
| 964 | fn new_with_resolved_ids( |
| 965 | scx: &'a StatementContext, |
nothing calls this directly
no test coverage detected