1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add the sqlite3_db_release_memory() interface and the shrink_memory pragma.

FossilOrigin-Name: 3f58e7c8895d1252eff56282c08b1a6f1194452c
This commit is contained in:
drh
2011-11-16 19:29:17 +00:00
parent 870c0178f7
commit 09419b4bae
12 changed files with 181 additions and 21 deletions

View File

@@ -3294,6 +3294,13 @@ void sqlite3PagerSetCachesize(Pager *pPager, int mxPage){
sqlite3PcacheSetCachesize(pPager->pPCache, mxPage);
}
/*
** Free as much memory as possible from the pager.
*/
void sqlite3PagerShrink(Pager *pPager){
sqlite3PcacheShrink(pPager->pPCache);
}
/*
** Adjust the robustness of the database to damage due to OS crashes
** or power failures by changing the number of syncs()s when writing