The negative value in the cache size pragma seems a mistake, but it isn’t. Negative values are used to specify a cache size that is a multiple of the page size (more or less) and the sign is discarded.
Not a great choice of API IMHO, but it’s a database, I’ve seen much worse.
Not a great choice of API IMHO, but it’s a database, I’ve seen much worse.
https://www.sqlite.org/pragma.html#pragma_cache_size