Expand description
Database connection manager for SQLite tools
Provides a singleton pattern for managing multiple database connections across tool invocations.
§Test Isolation
For test isolation, create local DatabaseManager instances instead of using
the global DATABASE_MANAGER. Each instance has its own connection pool and
default database setting. Tool tests that use the global should call
close_all() in cleanup to reset state.
Structs§
- DATABASE_
MANAGER - Global database manager instance
- Database
Manager - Manages SQLite database connections
Functions§
- with_
connection - Executes a closure with a database connection in a blocking task.