node-sqlite3 icon indicating copy to clipboard operation
node-sqlite3 copied to clipboard

Support calling close() on cached.Database()

Open rhansen opened this issue 4 years ago • 0 comments

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.

rhansen avatar Dec 06 '20 07:12 rhansen