jayralencar / sqlite-sync.js

Node module to sqlite sync and async
MIT License
78 stars 30 forks source link

Shared cache for In-memory databases support added. #30

Closed alexeyfadeev closed 3 years ago

alexeyfadeev commented 3 years ago

In-memory databases are allowed to use shared cache. It allowes to connect multiple times to one in-memory database and see changes by previous session. Special parameter cache=shared should be provided in URI filename. See https://www.sqlite.org/inmemorydb.html

It's a useful feature for unit-testing. I have implemented it, works fine.

alexeyfadeev commented 3 years ago

@jayralencar Thank you for fast merging! I'm looking forward for a new version of sqlite-sync with this feature. I really need it for my project testing