Function result_int

Source
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)
21fn add(context: *mut sqlite3_context, values: &[*mut sqlite3_value]) -> Result<()> {
22    let a = api::value_int(values.get(0).expect("1st argument"));
23    let b = api::value_int(values.get(1).expect("2nd argument"));
24    api::result_int(context, a + b);
25    Ok(())
26}