Skip to main content

InternalVirtualTableCursor

Trait InternalVirtualTableCursor 

Source
pub trait InternalVirtualTableCursor: Send + Sync {
    // Required methods
    fn next(&mut self) -> Result<bool, LimboError>;
    fn rowid(&self) -> i64;
    fn column(&self, column: usize) -> Result<Value, LimboError>;
    fn filter(
        &mut self,
        args: &[Value],
        idx_str: Option<String>,
        idx_num: i32,
    ) -> Result<bool, LimboError>;
}

Required Methods§

Source

fn next(&mut self) -> Result<bool, LimboError>

next returns Ok(true) if there are more rows, and Ok(false) otherwise.

Source

fn rowid(&self) -> i64

Source

fn column(&self, column: usize) -> Result<Value, LimboError>

Source

fn filter( &mut self, args: &[Value], idx_str: Option<String>, idx_num: i32, ) -> Result<bool, LimboError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§