indexeddbshim / IndexedDBShim

A polyfill for IndexedDB using WebSql
Other
968 stars 191 forks source link

It should be possible to choose the directory to save database files (Node) #297

Closed erikvold closed 7 years ago

erikvold commented 7 years ago

When using this repo with NodeJS it would be nice to be able to select where on the system the database files are stored, at the moment I'm guessing that process.cwd() is used.

brettz9 commented 7 years ago

As a temporary workaround, you could override CFG.win's openDatabase, though you'd have to turn off the new on-by-default CFG.deleteDatabaseFiles until the fix. But shouldn't be too hard to support.

brettz9 commented 7 years ago

Fixed in master. Note, however, that I accidentally pushed a commit prior to that commit which was incomplete and intend to fix shortly. There is a regression with CFG.cacheDatabaseInstances when not false.

brettz9 commented 7 years ago

The regression is now also fixed in master.