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§
Sourcefn get_string(&self, index: usize) -> DatabaseResult<String>
fn get_string(&self, index: usize) -> DatabaseResult<String>
获取指定索引的字符串值
Sourcefn get_i64(&self, index: usize) -> DatabaseResult<i64>
fn get_i64(&self, index: usize) -> DatabaseResult<i64>
获取指定索引的整数值
Sourcefn get_bool(&self, index: usize) -> DatabaseResult<bool>
fn get_bool(&self, index: usize) -> DatabaseResult<bool>
获取指定索引的布尔值
Sourcefn get_option_string(&self, index: usize) -> DatabaseResult<Option<String>>
fn get_option_string(&self, index: usize) -> DatabaseResult<Option<String>>
获取指定索引的可选字符串值