Skip to main content

SQLAggregateFactory

Trait SQLAggregateFactory 

Source
pub trait SQLAggregateFactory: Send + Sync {
    // Provided methods
    fn try_create_state(&self) -> Result<Box<dyn SQLAggregateState>, SQLError> { ... }
    fn try_create_state_with_context(
        &self,
        _context: &SQLFunctionContext,
    ) -> Result<Box<dyn SQLAggregateState>, SQLError> { ... }
}
Expand description

Fallible creation of an independent SQL aggregate state.

Execution propagates creation failure before observing or finishing that state, including a global aggregate over an empty input. A failed factory remains responsible for resources it allocated before returning the error.

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§