Skip to content

Unclosed SQLite Tracker Database in DatabaseTracker #3419

@suojae

Description

@suojae

https://github.com/simolus3/drift/blob/develop/drift/lib/src/sqlite3/database_tracker.dart

I noticed that the DatabaseTracker class currently lacks a dispose() method to explicitly close the _db resource. This could potentially lead to resource leaks, especially in long-running applications or during Flutter hot restarts.

Would it be okay if I worked on adding a dispose() method to ensure proper cleanup of the in-memory SQLite database and any related resources?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions