db:busy_timeout

Sets a busy handler

Prototype

db:busy_timeout(t)

Description

Sets a busy handler that waits for t milliseconds if a transaction cannot proceed. Calling this function will remove any busy handler set by db:busy_handler(); calling it with an argument less than or equal to 0 will turn off all busy handlers.

Lua functions

Topics