Function sqlite3_bind_pointer

Source
pub unsafe fn sqlite3_bind_pointer(
    stmt: *mut sqlite3_stmt,
    idx: c_int,
    ptr: *mut c_void,
    type: *const c_char,
    dtor: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
) -> c_int
Expand description

Causes the idx-th parameter in prepared statement stmt to have an SQL value of NULL, but to also be associated with the pointer ptr of type type. dtor is either a NULL pointer or a pointer to a destructor function for ptr. SQLite will invoke the destructor dtor with a single argument of ptr when it is finished using ptr. The type parameter should be a static string, preferably a string literal.

See https://www.sqlite.org/c3ref/bind_blob.html