PyDocs

Nav

Data Persistence

Connection.set_progress_handler

  • Connection.set_progress_handler(progress_handler, /, n)
Set progress handler callback.

  progress_handler
    A callable that takes no arguments.
    If the callable returns non-zero, the current query is
    terminated, and an exception is raised.
  n
    The number of SQLite virtual machine instructions that are
    executed between invocations of 'progress_handler'.

If 'progress_handler' is None or 'n' is 0, the progress handler is
disabled.
Changed in 3.15
  • 3.15: The first parameter is now positional-only.
0 Examples
No examples for sqlite3/Connection.set_progress_handler.
See Also
No see-alsos for sqlite3/Connection.set_progress_handler
0 Notes
No notes for Connection.set_progress_handler