Skip to main content

VTabCursor

Trait VTabCursor 

Source
pub trait VTabCursor<P: Sqlite3Api>: Sized + Send {
    type Error: Into<Error>;

    // Required methods
    fn filter(
        &mut self,
        idx_num: i32,
        idx_str: Option<&str>,
        args: &[ValueRef<'_>],
    ) -> Result<(), Self::Error>;
    fn next(&mut self) -> Result<(), Self::Error>;
    fn eof(&self) -> bool;
    fn column(&self, ctx: &Context<'_, P>, col: i32) -> Result<(), Self::Error>;
    fn rowid(&self) -> Result<i64, Self::Error>;
}
Expand description

Virtual table cursor implementation.

Required Associated Types§

Required Methods§

Source

fn filter( &mut self, idx_num: i32, idx_str: Option<&str>, args: &[ValueRef<'_>], ) -> Result<(), Self::Error>

Source

fn next(&mut self) -> Result<(), Self::Error>

Source

fn eof(&self) -> bool

Source

fn column(&self, ctx: &Context<'_, P>, col: i32) -> Result<(), Self::Error>

Source

fn rowid(&self) -> Result<i64, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§