MCPcopy Create free account
hub / github.com/asg017/sqlite-loadable-rs / find_function

Method find_function

tests/test_find_function.rs:62–68  ·  view source on GitHub ↗
(&mut self, _argc: i32, name: &str)

Source from the content-addressed store, hash-verified

60
61impl<'vtab> VTabFind<'vtab> for FindTable {
62 fn find_function(&mut self, _argc: i32, name: &str) -> Option<FindResult> {
63 if name == "wrapped" {
64 let (f, p) = scalar_function_raw(wrapped);
65 return Some((f, None, Some(p.cast())));
66 }
67 None
68 }
69}
70
71fn wrapped(context: *mut sqlite3_context, values: &[*mut sqlite3_value]) -> Result<()> {

Callers 1

rust_find_functionFunction · 0.80

Calls 1

scalar_function_rawFunction · 0.85

Tested by

no test coverage detected