Function sqlite_loadable::api::value_text
source · pub fn value_text<'a>(value: &*mut sqlite3_value) -> Result<&'a str, Error>
Expand description
Returns the sqlite3_value_text
result
from the given sqlite3_value, as a str.
Safety
Will probably segfault if the sqlite3_value has a NULL type.
One should call value_type and check if it’s ValueType::Null
before calling this function - or use Value
with
notnull_or_else
.