Skip to main content

sqlite3_module

Struct sqlite3_module 

Source
#[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: i32

Module 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.