Open pranshuchittora opened 4 weeks ago
we had a similar request some of our api is sync only
@rflopezm
Here was the change:
Now there are a couple of differences, before you go re-implementing this interface:
SmartHostObject
or execute_with_host_objects
, the abstraction will cost too much on runtime, use the same as current execute but just don't execute it in a thread.queries.spec.ts
. Make sure it returns the correct dataqueries.spec.ts
it will let you know if something is missing..execute
should be enough.
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.https://github.com/OP-Engineering/op-sqlite/commit/1dbc8289e1a04841b1ae08b7fbbf3c849a3454a2#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R127
Is there any possibility to bring back the sync execute? or any workaround for the same?
Thanks