diff --git a/lib/app/app_shutdown.dart b/lib/app/app_shutdown.dart index 8a601419..d7cc802f 100644 --- a/lib/app/app_shutdown.dart +++ b/lib/app/app_shutdown.dart @@ -2,12 +2,15 @@ import 'package:querya_desktop/core/database/mongodb_service.dart'; import 'package:querya_desktop/core/database/mysql_service.dart'; import 'package:querya_desktop/core/database/postgres_service.dart'; import 'package:querya_desktop/core/database/redis_service.dart'; +import 'package:querya_desktop/core/database/sqlite_service.dart'; /// Disconnects all pooled / cached client connections (PostgreSQL pool, MySQL, -/// Mongo, Redis). Safe to call when no connections exist. +/// Mongo, Redis, SQLite). Safe to call when no connections exist. Future disconnectAllExternalServices() async { await PostgresService.instance.disconnectAll(); await MysqlService.instance.disconnectAll(); await MongoService.instance.disconnectAll(); await RedisService.instance.disconnectAll(); + await SqliteService.instance.disconnectAll(); } + diff --git a/lib/features/connections/connections_panel.dart b/lib/features/connections/connections_panel.dart index 40bbfa6e..1a679885 100644 --- a/lib/features/connections/connections_panel.dart +++ b/lib/features/connections/connections_panel.dart @@ -353,7 +353,6 @@ class ConnectionsPanelState extends State { _expandedConnections.clear(); }); await disconnectAllExternalServices(); - await SqliteService.instance.disconnectAll(); } Future disconnectOthers(ConnectionRow keepConn) async {