在显式关闭数据库时,在我的React Native Mobile应用程序中出现此错误时,我在Andorid Studio日志中看到,有1个连接池正在停止数据库关闭进程。
03-05 16:37:10.339 7132-7234/com.samplecode.DB I/SQLiteConnectionPool: The connection pool for /data/user/0//com.samplecode.DB /databases/CXODashboardDBNew.db3 has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool.
并与此:
A SQLiteConnection object for database 'databases/CXODashboardDBNew.db3' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
我必须先关闭数据库,然后再删除它,有人可以帮我完成所有事务后强制关闭数据库吗?