open method
Open a new SqliteConnection.
This opens a single connection in a background execution isolate.
Implementation
SqliteConnection open({String? debugName, bool readOnly = false}) {
final updates = _IsolateUpdateListener(upstreamPort);
var openMutex = mutex.open();
return _IsolateSqliteConnection(
openFactory: openFactory,
mutex: openMutex,
upstreamPort: upstreamPort,
readOnly: readOnly,
debugName: debugName,
updates: updates.stream,
closeFunction: () async {
await openMutex.close();
updates.close();
});
}