I’m using Peewee and obtain my connection from an URL like this:
JavaScript
x
8
1
from playhouse.db_url import connect
2
3
db = connect('sqlite:///C:/some/file.db')
4
connection = db.connection()
5
connection.execute('PRAGMA foreign_keys=ON')
6
# How can I set the SQLITE_MAX_VARIABLE_NUMBER here?
7
connection.execute('?????????????????')
8
How can I correctly increase the SQLITE_MAX_VARIABLE_NUMBER
? I am stuck in an older 2.x SQLite version and can’t upgrade unfortunately … corporate policies. I am aware that the latest versions of SQLite have increased the default limit beyond 999.
Advertisement
Answer
See the documentation here: https://www.sqlite.org/limits.html#max_variable_number
You will need to recompile Sqlite to raise the limits.