mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-15 19:52:24 +08:00
Remove old_sqlite
feature
And associated bindgen_3.6.8.rs
This commit is contained in:
@@ -295,7 +295,6 @@ impl InnerConnection {
|
||||
unsafe { ffi::sqlite3_get_autocommit(self.db()) != 0 }
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "old_sqlite"))] // 3.8.6
|
||||
pub fn is_busy(&self) -> bool {
|
||||
let db = self.db();
|
||||
unsafe {
|
||||
@@ -310,7 +309,6 @@ impl InnerConnection {
|
||||
false
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "old_sqlite"))] // 3.10.0
|
||||
pub fn cache_flush(&mut self) -> Result<()> {
|
||||
crate::error::check(unsafe { ffi::sqlite3_db_cacheflush(self.db()) })
|
||||
}
|
||||
@@ -319,7 +317,6 @@ impl InnerConnection {
|
||||
#[inline]
|
||||
fn remove_hooks(&mut self) {}
|
||||
|
||||
#[cfg(not(feature = "old_sqlite"))] // 3.7.11
|
||||
pub fn db_readonly(&self, db_name: super::DatabaseName<'_>) -> Result<bool> {
|
||||
let name = db_name.as_cstring()?;
|
||||
let r = unsafe { ffi::sqlite3_db_readonly(self.db, name.as_ptr()) };
|
||||
|
Reference in New Issue
Block a user