Add as_raw to Cursor

This commit is contained in:
Ivan Ukhov 2017-08-24 10:24:54 +02:00
parent d1583158a3
commit 3119f63fec

View File

@ -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]