#[repr(C)]pub struct ExtensionApi {
pub ctx: *mut c_void,
pub register_scalar_function: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, func: ScalarFunction) -> ResultCode,
pub register_aggregate_function: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, args: i32, init_func: InitAggFunction, step_func: StepFunction, finalize_func: FinalizeFunction) -> ResultCode,
pub register_module: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, module: VTabModuleImpl) -> ResultCode,
pub declare_vtab: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, sql: *const c_char) -> ResultCode,
}Fields§
§ctx: *mut c_void§register_scalar_function: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, func: ScalarFunction) -> ResultCode§register_aggregate_function: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, args: i32, init_func: InitAggFunction, step_func: StepFunction, finalize_func: FinalizeFunction) -> ResultCode§register_module: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, module: VTabModuleImpl) -> ResultCode§declare_vtab: unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char, sql: *const c_char) -> ResultCodeImplementations§
Source§impl ExtensionApi
impl ExtensionApi
pub fn declare_virtual_table(&self, name: &str, sql: &str) -> ResultCode
Auto Trait Implementations§
impl Freeze for ExtensionApi
impl RefUnwindSafe for ExtensionApi
impl !Send for ExtensionApi
impl !Sync for ExtensionApi
impl Unpin for ExtensionApi
impl UnwindSafe for ExtensionApi
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