mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-16 02:42:25 +08:00
Change default minimal SQLite API version
From 3.6.8 to 3.14.0. Use `old_sqlite` feature to keep 3.6.8 (or 3.7.16) as the minimal version. Use `modern_sqlite` for SQLite API > 3.14.0. Also remove old 3.6.23 and 3.7.7 bindings.
This commit is contained in:
@@ -295,7 +295,7 @@ impl InnerConnection {
|
||||
unsafe { ffi::sqlite3_get_autocommit(self.db()) != 0 }
|
||||
}
|
||||
|
||||
#[cfg(feature = "modern_sqlite")] // 3.8.6
|
||||
#[cfg(not(feature = "old_sqlite"))] // 3.8.6
|
||||
pub fn is_busy(&self) -> bool {
|
||||
let db = self.db();
|
||||
unsafe {
|
||||
@@ -310,7 +310,7 @@ impl InnerConnection {
|
||||
false
|
||||
}
|
||||
|
||||
#[cfg(feature = "modern_sqlite")] // 3.10.0
|
||||
#[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 +319,7 @@ impl InnerConnection {
|
||||
#[inline]
|
||||
fn remove_hooks(&mut self) {}
|
||||
|
||||
#[cfg(feature = "modern_sqlite")] // 3.7.11
|
||||
#[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