query/
lib.rs

1// Copyright 2023 Greptime Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![feature(int_roundings)]
16#![feature(try_blocks)]
17#![feature(stmt_expr_attributes)]
18#![feature(iterator_try_collect)]
19#![feature(box_patterns)]
20
21mod analyze;
22pub mod datafusion;
23pub mod dist_plan;
24pub mod dummy_catalog;
25pub mod error;
26pub mod executor;
27pub mod log_query;
28pub mod metrics;
29pub mod optimizer;
30pub mod options;
31pub mod parser;
32mod part_sort;
33pub mod physical_wrapper;
34pub mod plan;
35pub mod planner;
36pub mod promql;
37pub mod query_engine;
38mod range_select;
39pub mod region_query;
40pub mod sql;
41pub(crate) mod window_sort;
42
43#[cfg(test)]
44pub(crate) mod test_util;
45#[cfg(test)]
46mod tests;
47
48pub use crate::datafusion::DfContextProviderAdapter;
49pub use crate::query_engine::{
50    QueryEngine, QueryEngineContext, QueryEngineFactory, QueryEngineRef,
51};