pub fn result_int(context: *mut sqlite3_context, i: i32)
Expand description

Calls sqlite3_result_int to represent that a function returns an int32 with the given value.

Examples found in repository?
examples/scalar.rs (line 24)
21
22
23
24
25
26
fn add(context: *mut sqlite3_context, values: &[*mut sqlite3_value]) -> Result<()> {
    let a = api::value_int(values.get(0).expect("1st argument"));
    let b = api::value_int(values.get(1).expect("2nd argument"));
    api::result_int(context, a + b);
    Ok(())
}