mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
Add as_raw to Cursor
This commit is contained in:
parent
d1583158a3
commit
3119f63fec
@ -1,3 +1,4 @@
|
||||
use ffi;
|
||||
use statement::{State, Statement};
|
||||
use {Result, Value};
|
||||
|
||||
@ -69,6 +70,12 @@ impl<'l> Cursor<'l> {
|
||||
pub fn columns(&self) -> usize {
|
||||
self.statement.columns()
|
||||
}
|
||||
|
||||
/// Return the raw pointer.
|
||||
#[inline]
|
||||
pub fn as_raw(&self) -> *mut ffi::sqlite3_stmt {
|
||||
self.statement.as_raw()
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
Loading…
x
Reference in New Issue
Block a user