pub struct AnalysisContext {
pub allow_agg_func: bool,
pub use_agg_funcs: bool,
}Expand description
Context for controlling analysis behavior.
This struct allows you to configure how expressions are analyzed, such as whether aggregate functions are allowed in the current context.
Fields§
§allow_agg_func: boolControls whether aggregate functions (like COUNT, SUM, AVG) are allowed in the current analysis context.
Set to true to allow aggregate functions, false to reject them.
Defaults to false.
use_agg_funcs: boolIndicates if the query uses aggregate functions.
Trait Implementations§
Source§impl Default for AnalysisContext
impl Default for AnalysisContext
Source§fn default() -> AnalysisContext
fn default() -> AnalysisContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalysisContext
impl RefUnwindSafe for AnalysisContext
impl Send for AnalysisContext
impl Sync for AnalysisContext
impl Unpin for AnalysisContext
impl UnwindSafe for AnalysisContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more