From Python, I want to reduce the value of SQLITE_LIMIT_VARIABLE_NUMBER from its compiled-in value to a much lower value, for testing purposes.
In practice, I sometimes need to specify many more variables than the compiled-in value allows. Therefore, I chunk the requests. It would be convenient if I could reduce the compiled-in value to something very low, so that I can make sure my chunking method is working when testing with small data sets.
SQLite allows changing limits only by calling
sqlite3_limit(); there is notPRAGMAfor this.However, check out the Another Python SQLite Wrapper, which has a
Connection.limit()function.