Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/app/app_shutdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> disconnectAllExternalServices() async {
await PostgresService.instance.disconnectAll();
await MysqlService.instance.disconnectAll();
await MongoService.instance.disconnectAll();
await RedisService.instance.disconnectAll();
await SqliteService.instance.disconnectAll();
}

1 change: 0 additions & 1 deletion lib/features/connections/connections_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ class ConnectionsPanelState extends State<ConnectionsPanel> {
_expandedConnections.clear();
});
await disconnectAllExternalServices();
await SqliteService.instance.disconnectAll();
}

Future<void> disconnectOthers(ConnectionRow keepConn) async {
Expand Down
Loading