#[repr(C)]pub struct sqlite3_module<P: Sqlite3Api> {Show 13 fields
pub i_version: i32,
pub x_create: Option<extern "C" fn(*mut P::Db, *mut c_void, i32, *const *const u8, *mut *mut P::VTab, *mut *mut u8) -> i32>,
pub x_connect: Option<extern "C" fn(*mut P::Db, *mut c_void, i32, *const *const u8, *mut *mut P::VTab, *mut *mut u8) -> i32>,
pub x_best_index: Option<extern "C" fn(*mut P::VTab, *mut c_void) -> i32>,
pub x_disconnect: Option<extern "C" fn(*mut P::VTab) -> i32>,
pub x_destroy: Option<extern "C" fn(*mut P::VTab) -> i32>,
pub x_open: Option<extern "C" fn(*mut P::VTab, *mut *mut P::VTabCursor) -> i32>,
pub x_close: Option<extern "C" fn(*mut P::VTabCursor) -> i32>,
pub x_filter: Option<extern "C" fn(*mut P::VTabCursor, i32, *const u8, i32, *mut *mut P::Value) -> i32>,
pub x_next: Option<extern "C" fn(*mut P::VTabCursor) -> i32>,
pub x_eof: Option<extern "C" fn(*mut P::VTabCursor) -> i32>,
pub x_column: Option<extern "C" fn(*mut P::VTabCursor, *mut P::Context, i32) -> i32>,
pub x_rowid: Option<extern "C" fn(*mut P::VTabCursor, *mut i64) -> i32>,
}Expand description
Typed wrapper for sqlite3_module.
Fields§
§i_version: i32Module ABI version.
x_create: Option<extern "C" fn(*mut P::Db, *mut c_void, i32, *const *const u8, *mut *mut P::VTab, *mut *mut u8) -> i32>xCreate callback for CREATE VIRTUAL TABLE.
x_connect: Option<extern "C" fn(*mut P::Db, *mut c_void, i32, *const *const u8, *mut *mut P::VTab, *mut *mut u8) -> i32>xConnect callback for CONNECTing to an existing virtual table.
x_best_index: Option<extern "C" fn(*mut P::VTab, *mut c_void) -> i32>xBestIndex query-planning callback.
x_disconnect: Option<extern "C" fn(*mut P::VTab) -> i32>xDisconnect callback for disconnecting a table instance.
x_destroy: Option<extern "C" fn(*mut P::VTab) -> i32>xDestroy callback for dropping a virtual table.
x_open: Option<extern "C" fn(*mut P::VTab, *mut *mut P::VTabCursor) -> i32>xOpen callback for creating a cursor.
x_close: Option<extern "C" fn(*mut P::VTabCursor) -> i32>xClose callback for closing a cursor.
x_filter: Option<extern "C" fn(*mut P::VTabCursor, i32, *const u8, i32, *mut *mut P::Value) -> i32>xFilter callback for starting a cursor scan.
x_next: Option<extern "C" fn(*mut P::VTabCursor) -> i32>xNext callback for advancing a cursor.
x_eof: Option<extern "C" fn(*mut P::VTabCursor) -> i32>xEof callback for cursor end-of-scan checks.
x_column: Option<extern "C" fn(*mut P::VTabCursor, *mut P::Context, i32) -> i32>xColumn callback for reading the current row value.
x_rowid: Option<extern "C" fn(*mut P::VTabCursor, *mut i64) -> i32>xRowid callback for reading the current rowid.
Auto Trait Implementations§
impl<P> Freeze for sqlite3_module<P>
impl<P> RefUnwindSafe for sqlite3_module<P>
impl<P> Send for sqlite3_module<P>
impl<P> Sync for sqlite3_module<P>
impl<P> Unpin for sqlite3_module<P>
impl<P> UnsafeUnpin for sqlite3_module<P>
impl<P> UnwindSafe for sqlite3_module<P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more