diff --git a/src/cursor.rs b/src/cursor.rs index f07f0ef..76b1911 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -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]