Skip to main content

QueryConsumerFactory

Trait QueryConsumerFactory 

Source
pub trait QueryConsumerFactory<'consumer, S: Clone + 'static> {
    // Required method
    fn bind(
        self: Rc<Self>,
        generation: Option<&S>,
    ) -> Result<Rc<dyn QueryRowConsumer + 'consumer>, SQLError>;

    // Provided methods
    fn uses_directional_scan(&self) -> bool { ... }
    fn streams_set_inputs(&self) -> bool { ... }
}
Expand description

A row sink chooses its own services for the selected generation; query execution supplies no writable context.

Required Methods§

Source

fn bind( self: Rc<Self>, generation: Option<&S>, ) -> Result<Rc<dyn QueryRowConsumer + 'consumer>, SQLError>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<'consumer, S: Clone + 'static> QueryConsumerFactory<'consumer, S> for InsertSelectOutput<'consumer, S>