Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error logging callback #272

Open
borisgontar opened this issue Jun 8, 2019 · 6 comments
Open

Error logging callback #272

borisgontar opened this issue Jun 8, 2019 · 6 comments

Comments

@borisgontar
Copy link

Please implement adding error logging callback as described in https://sqlite.org/errlog.html.

@JoshuaWise
Copy link
Member

Any errors that occur will be propagated back to you as JavaScript exceptions. If you want to log an error, use a try-catch statement.

@borisgontar
Copy link
Author

Actually I just wanted to catch SQLITE_NOTICE because rollback may take a long time and I need to ask users to wait.

@Custardcs

This comment has been minimized.

@ronburk
Copy link

ronburk commented May 10, 2020

+1 on this one, because of desire for a simple, one-line, foolproof catch-all for logging.

Thanks for creating/maintaining this package!

@kulshekhar
Copy link

Another practical reason to support this is because this can be used to identify cases where SQLite is creating and using temporary automatic indexes

@kulshekhar
Copy link

happy to submit a PR if I could get high level pointers to guide me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants