Need isolate usage example with supabase #178
Unanswered
richard457
asked this question in
Q&A
Replies: 1 comment
-
From other conversations I gather:
So what I'd recommend:
Here's an example: https://gist.github.com/rkistner/e1067e51ad340f9447c4e55bc7bc96e1 The relevant bit for background isolate: runInIsolate(IsolateConnectionFactory factory) async {
return await Isolate.run(() async {
var db = factory.open();
var results = await db.getAll('select * from customers');
return results;
});
}
await runInIsolate(db.isolateConnectionFactory()); This example uses Note that inside the Isolate, the database is an instance of a sqlite_async |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Need isolate usage example with supabase
Beta Was this translation helpful? Give feedback.
All reactions