setProgressHandler

fun setProgressHandler(instructionCount: Int, handler: SQLProgressHandler?)(source)

Registers a progress handler that is invoked periodically during long-running SQL statements on all database connections managed by this database. If the handler returns non-zero, the operation is interrupted.

Parameters

instructionCount

approximate number of virtual machine instructions between invocations of the handler.

handler

the progress handler, or null to clear the handler.

See also