currentSession method
The current DriftSession that this database will use to run statements.
Implementation
Future<DriftSession> currentSession() {
if (Zone.current[_zoneRootUserKey] case final scoped?) {
return Future.value((scoped as _ScopedDatabaseSession)._session);
} else {
return attachedDatabase.rootConnection();
}
}