check_result

Macro check_result 

Source
macro_rules! check_result {
    ($ex:expr) => { ... };
    ($ex:expr, $code: expr) => { ... };
}
Expand description

A macro to safely unwrap a Result<T, E>, returning a SQLite error code on Err.

The default err code is SQLITE_ERROR.