-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
[Request]: Bring back sync execute #173
Comments
we had a similar request some of our api is sync only |
Here was the change: Now there are a couple of differences, before you go re-implementing this interface:
|
rikur
added a commit
to rikur/op-sqlite
that referenced
this issue
Nov 19, 2024
Fixes OP-Engineering#173 Add synchronous execute API to the project. * **cpp/DBHostObject.cpp** - Add a new `executeSync` function for synchronous execution. - Directly call `opsqlite_execute` without using `invokeAsync`. - Register the new `executeSync` function in the function map. * **cpp/libsql/bridge.cpp** - Add a new `executeSync` function for synchronous execution. - Directly call `libsql_query_stmt` without using `libsql_prepare`. * **cpp/DBHostObject.h** - Declare the new `executeSync` function. * **cpp/libsql/bridge.h** - Declare the new `executeSync` function. * **example/src/tests/queries.spec.ts** - Add test cases for the new `executeSync` function. * **README.md** - Update documentation to include the new `executeSync` function. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/OP-Engineering/op-sqlite/issues/173?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What do you need?
Hey, I am using op-sqlite and in the newest version the
execute
api was changed from sync to async.My use-case requires sync query execution in some cases which can't be changed to async.
1dbc828#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R127
Is there any possibility to bring back the sync execute? or any workaround for the same?
Thanks
The text was updated successfully, but these errors were encountered: