-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Add sync versions of exec, run, get, all methods #523
base: main
Are you sure you want to change the base?
Conversation
Oops, sometimes this pull request fails with segfault like the following but I have no idea to resolve this problem. Any comments?
|
I've just pushed 518d470 to add sync version of finialize and to read stmt from baton instance has. I didn't other idea to fix the segfault. |
It might be needed to prepare sync version of constructor? |
what is going on here? this is very nice feature |
I tried to make the constructor synchronous in Yaska@f4d7790, and while it is working when I run it manually, the tests segfault:
it crashes when running the tests:
I don't really know what I'm doing 😅 - any hints on what could be wrong @springmeyer @co3k ? |
@co3k, since https://github.com/JoshuaWise/better-sqlite3 is currently being actively developed and is supposed to be a purely synchronous implementation of Sqlite3, is this PR still valid? If not, could you please close it since it's over two years old and I'm currently helping to clean up here? Thanks |
I would love to see this land in |
Synchronous methods are very useful for batch scripts.
I think supporting both of synchronous version and asynchronous one is so good.