pub struct TokenCallback { /* private fields */ }Expand description
Convenience wrapper around SQLite’s token callback.
This helper keeps the unsafe FFI boundary localized and provides clear intent when emitting tokens from Rust back into SQLite.
Implementations§
Source§impl TokenCallback
impl TokenCallback
Sourcepub const fn new(context: *mut c_void, function: TokenFunction) -> Self
pub const fn new(context: *mut c_void, function: TokenFunction) -> Self
Creates a new callback wrapper using the opaque context pointer and the C callback function provided by SQLite.