mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-19 07:47:44 +08:00
Remove release_memory feature
Because `sqlite3_db_release_memory` is available in 3.14.0 (min version supported by rusqlite) And: <http://sqlite.org/c3ref/db_release_memory.html> > Unlike the sqlite3_release_memory() interface, this interface is in effect even when the SQLITE_ENABLE_MEMORY_MANAGEMENT compile-time option is omitted.
This commit is contained in:
parent
de7cd7c7d2
commit
9e09a8b9e8
@ -43,8 +43,6 @@ collation = []
|
||||
functions = []
|
||||
# sqlite3_log: 3.6.23 (2010-03-09)
|
||||
trace = []
|
||||
# sqlite3_db_release_memory: 3.7.10 (2012-01-16)
|
||||
release_memory = []
|
||||
bundled = ["libsqlite3-sys/bundled", "modern_sqlite"]
|
||||
bundled-sqlcipher = ["libsqlite3-sys/bundled-sqlcipher", "bundled"]
|
||||
bundled-sqlcipher-vendored-openssl = [
|
||||
|
@ -382,7 +382,6 @@ impl InnerConnection {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[cfg(feature = "release_memory")]
|
||||
pub fn release_memory(&self) -> Result<()> {
|
||||
self.decode_result(unsafe { ffi::sqlite3_db_release_memory(self.db) })
|
||||
}
|
||||
|
@ -652,7 +652,6 @@ impl Connection {
|
||||
///
|
||||
/// This calls [`sqlite3_db_release_memory`](https://www.sqlite.org/c3ref/db_release_memory.html).
|
||||
#[inline]
|
||||
#[cfg(feature = "release_memory")]
|
||||
pub fn release_memory(&self) -> Result<()> {
|
||||
self.db.borrow_mut().release_memory()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user