go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

Add SetErrorLog function

Open c4rlo opened this issue 2 years ago • 1 comments

This function sets a callback that SQLite invokes when it detects an anomaly. See https://sqlite.org/errlog.html.

c4rlo avatar Sep 30 '23 16:09 c4rlo

I've just rebased this.

Any word from the maintainers on this? I think this would be a good enhancement to have. Quoting the SQLite docs linked above:

This mechanism is very helpful in tracking obscure problems that occur rarely and in the field. Application developers are encouraged to take advantage of the error logging facility of SQLite in their products, as it is very low CPU and memory cost but can be a huge aid for debugging.

c4rlo avatar Dec 23 '23 08:12 c4rlo