mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-22 23:52:13 +00:00
Add as_raw to Connection and Statement
This commit is contained in:
parent
8b3e284771
commit
6c1ddbf184
@ -131,6 +131,12 @@ impl Connection {
|
|||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Return the raw pointer.
|
||||||
|
#[inline]
|
||||||
|
pub fn as_raw(&self) -> *mut ffi::sqlite3 {
|
||||||
|
self.raw
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for Connection {
|
impl Drop for Connection {
|
||||||
|
@ -101,6 +101,12 @@ impl<'l> Statement<'l> {
|
|||||||
pub fn cursor(self) -> Cursor<'l> {
|
pub fn cursor(self) -> Cursor<'l> {
|
||||||
::cursor::new(self)
|
::cursor::new(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Return the raw pointer.
|
||||||
|
#[inline]
|
||||||
|
pub fn as_raw(&self) -> *mut ffi::sqlite3_stmt {
|
||||||
|
self.raw.0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'l> Drop for Statement<'l> {
|
impl<'l> Drop for Statement<'l> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user