Skip to main content

DrizzleRowByIndex

Trait DrizzleRowByIndex 

Source
pub trait DrizzleRowByIndex {
    // Required method
    fn get_column<T: FromSQLiteValue>(
        &self,
        idx: usize,
    ) -> Result<T, DrizzleError>;
}
Expand description

A driver row whose columns can be read by position.

Implemented for rusqlite::Row, libsql::Row and turso::Row when the matching feature is enabled.

Required Methods§

Source

fn get_column<T: FromSQLiteValue>(&self, idx: usize) -> Result<T, DrizzleError>

Reads and decodes the column at idx (0-based).

§Errors

Returns DrizzleError if the index is out of range or the column value cannot be converted to T.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§