Name
sqlite3_soft_heap_limit() — Limit the memory used by SQLite
Definition
void sqlite3_soft_heap_limit( int bytes );
-
bytes
The requested limit, in bytes.
Description
This function sets a soft limit on the amount of dynamic heap
memory used by the SQLite library. If a memory allocation would
cause the limit to be exceeded, sqlite3_release_memory()
is called in an
attempt to recover memory. If this is not successful, the memory
is allocated anyway, without warning or error.
To remove the limit, simply pass in a zero or negative value.
Get Using SQLite now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.