pub struct Context<'p, P: Sqlite3Api> { /* private fields */ }Expand description
Context wrapper passed to user-defined functions.
Implementations§
Source§impl<'p, P: Sqlite3Api> Context<'p, P>
impl<'p, P: Sqlite3Api> Context<'p, P>
Sourcepub fn result_null(&self)
pub fn result_null(&self)
Set NULL result.
Sourcepub fn result_int64(&self, v: i64)
pub fn result_int64(&self, v: i64)
Set integer result.
Sourcepub fn result_double(&self, v: f64)
pub fn result_double(&self, v: f64)
Set floating result.
Sourcepub fn result_text(&self, v: &str)
pub fn result_text(&self, v: &str)
Set text result (provider must copy or retain the bytes as needed).
Sourcepub fn result_blob(&self, v: &[u8])
pub fn result_blob(&self, v: &[u8])
Set blob result (provider must copy or retain the bytes as needed).
Sourcepub fn result_error(&self, msg: &str)
pub fn result_error(&self, msg: &str)
Set error result.
Sourcepub fn result_value(&self, value: Value)
pub fn result_value(&self, value: Value)
Set result from an owned Value.
Auto Trait Implementations§
impl<'p, P> Freeze for Context<'p, P>
impl<'p, P> RefUnwindSafe for Context<'p, P>
impl<'p, P> !Send for Context<'p, P>
impl<'p, P> !Sync for Context<'p, P>
impl<'p, P> Unpin for Context<'p, P>
impl<'p, P> UnsafeUnpin for Context<'p, P>
impl<'p, P> UnwindSafe for Context<'p, 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