Skip to main content

Row

Trait Row 

Source
pub trait Row: Send {
    // Required methods
    fn get_string(&self, index: usize) -> DatabaseResult<String>;
    fn get_i64(&self, index: usize) -> DatabaseResult<i64>;
    fn get_bool(&self, index: usize) -> DatabaseResult<bool>;
    fn get_option_string(&self, index: usize) -> DatabaseResult<Option<String>>;
}
Expand description

行 trait

Required Methods§

Source

fn get_string(&self, index: usize) -> DatabaseResult<String>

获取指定索引的字符串值

Source

fn get_i64(&self, index: usize) -> DatabaseResult<i64>

获取指定索引的整数值

Source

fn get_bool(&self, index: usize) -> DatabaseResult<bool>

获取指定索引的布尔值

Source

fn get_option_string(&self, index: usize) -> DatabaseResult<Option<String>>

获取指定索引的可选字符串值

Implementors§