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

Function sqlite3ext_create_function_v2

src/ext.rs:417–431  ·  view source on GitHub ↗
(
    db: *mut sqlite3,
    s: *const c_char,
    argc: i32,
    text_rep: i32,
    p_app: *mut c_void,
    x_func: Option<unsafe extern "C" fn(*mut sqlite3_context, i32, *mut *mut sqlite3_value)>,
  

Source from the content-addressed store, hash-verified

415
416#[cfg(feature = "static")]
417pub unsafe fn sqlite3ext_create_function_v2(
418 db: *mut sqlite3,
419 s: *const c_char,
420 argc: i32,
421 text_rep: i32,
422 p_app: *mut c_void,
423 x_func: Option<unsafe extern "C" fn(*mut sqlite3_context, i32, *mut *mut sqlite3_value)>,
424 x_step: Option<unsafe extern "C" fn(*mut sqlite3_context, i32, *mut *mut sqlite3_value)>,
425 x_final: Option<unsafe extern "C" fn(*mut sqlite3_context)>,
426 destroy: Option<unsafe extern "C" fn(*mut c_void)>,
427) -> c_int {
428 libsqlite3_sys::sqlite3_create_function_v2(
429 db, s, argc, text_rep, p_app, x_func, x_step, x_final, destroy,
430 )
431}
432#[cfg(not(feature = "static"))]
433pub unsafe fn sqlite3ext_create_function_v2(
434 db: *mut sqlite3,

Callers 1

create_function_v2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected