ncruces / go-sqlite3

Go bindings to SQLite using wazero
https://pkg.go.dev/github.com/ncruces/go-sqlite3
MIT License
500 stars 15 forks source link

Context aware busy handler #145

Closed ncruces closed 1 month ago

ncruces commented 2 months ago

In 7ee023d356ef165e31da1c940b64523cd58520e1, @NyaaaWhatsUpDoc tried to make busy handlers context aware.

The implementation predates ed932ee93bdf72415941aab499fbe9c00df4bcb1 (which already makes the busy handling process as awhole interruptible) and uses the wrong context, but is fundamentally a good idea.

This can be implemented transparently for BusyTimeout, but is a breaking change for BusyHandler.

ncruces commented 2 months ago

Defer BusyHandler change to the next "major" version.