PyDocs

Nav

Data Persistence

Connection.setlimit

sqlite3

method of Connection · Added in 3.11
  • Connection.setlimit(category, limit, /)
Set connection run-time limits.

  category
    The limit category to be set.
  limit
    The new limit. If the new limit is a negative number, the limit
    is unchanged.

Attempts to increase a limit above its hard upper bound are silently
truncated to the hard upper bound. Regardless of whether or not the
limit was changed, the prior value of the limit is returned.
1 Example
>>> con.setlimit(sqlite3.SQLITE_LIMIT_ATTACHED, 1)
10
>>> con.getlimit(sqlite3.SQLITE_LIMIT_ATTACHED)
1
from the Python docs
See Also
No see-alsos for sqlite3/Connection.setlimit
0 Notes
No notes for Connection.setlimit