如何从连接中正确设置SQLITE_MAX_VARIABLE_NUMBER



我正在使用Peewee,并从如下URL获取连接:

from playhouse.db_url import connect
db = connect('sqlite:///C:/some/file.db')
connection = db.connection()
connection.execute('PRAGMA foreign_keys=ON')
# How can I set the SQLITE_MAX_VARIABLE_NUMBER here?
connection.execute('?????????????????')

如何正确增加SQLITE_MAX_VARIABLE_NUMBER?我被困在旧的2.x SQLite版本中,不幸的是无法升级。。。公司政策。我知道SQLite的最新版本已经将默认限制增加到999以上。

请参阅此处的文档:https://www.sqlite.org/limits.html#max_variable_number

您需要重新编译Sqlite以提高限制。

最新更新