Database.setUnlockNotifyHandler

Registers a IUnlockNotifyHandler used to handle database locks.

When running in shared-cache mode, a database operation may fail with an SQLITE_LOCKED error if the required locks on the shared-cache or individual tables within the shared-cache cannot be obtained. See SQLite Shared-Cache Mode for a description of shared-cache locking. This API may be used to register a callback that SQLite will invoke when the connection currently holding the required lock relinquishes it. This API can be used only if the SQLite library was compiled with the SQLITE_ENABLE_UNLOCK_NOTIFY C-preprocessor symbol defined.

struct Database
version(_UnlockNotify)
private public
void
setUnlockNotifyHandler

See Also

Meta