node-sqlite3
node-sqlite3 copied to clipboard
Support calling close() on cached.Database()
Introduce a refcount for cached Database entries so that calling close() on the Database returned from cached.Database() does not invalidate existing or future uses of the same cached Database.
This is a backwards-incompatible change because it changes the number of times close() must be called before the underlying Database is closed.