Merge remote-tracking branch 'jgallagher/master' into tail

This commit is contained in:
gwenn
2019-02-02 13:22:40 +01:00
49 changed files with 7146 additions and 2010 deletions

View File

@@ -1,5 +1,6 @@
use super::ffi;
use super::unlock_notify;
use super::StatementStatus;
use std::ffi::CStr;
use std::os::raw::{c_char, c_int};
use std::ptr;
@@ -101,6 +102,11 @@ impl RawStatement {
}
}
pub fn get_status(&self, status: StatementStatus, reset: bool) -> i32 {
assert!(!self.0.is_null());
unsafe { ffi::sqlite3_stmt_status(self.0, status as i32, reset as i32) }
}
pub fn has_tail(&self) -> bool {
!self.1.is_null()
}