Function decode_result

Source
pub fn decode_result(
    result: c_int,
    desc: &'static str,
    detail_db: Option<*mut sqlite3>,
) -> SqliteResult<()>
Expand description

Decode SQLite result as SqliteResult.

Note the use of the Result<T, E> pattern to distinguish errors in the type system.

ยงPanic

Panics if result is not a SQLITE error code.