Skip to main content

Module manager

Module manager 

Source
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
DatabaseManager
Manages SQLite database connections

Functions§

with_connection
Executes a closure with a database connection in a blocking task.