Replies: 3 comments
-
Hi @AFDevMike, thanks for your interest in this lib. Currently, v7.4+ of the lib is needed. The recipe for multiple storages is here. Note that v7 is not recommended, but it can work with TypeScript 3.2 if you work around the TypeScript issue (see #64). v8 (tracked in #76) should be fully compatible with Angular 7 (and TS 3.1 & 3.2). Note that the behavior of A real feature for multiple databases would be a good idea, but:
|
Beta Was this translation helpful? Give feedback.
-
For reference: this request was already made and there was already some investigation in #39 with @juristr and @dphochman. v7 already answered to this use case, but the upcoming kv-storage opened new options of API design. |
Beta Was this translation helpful? Give feedback.
-
For documentation: multiple databases can already be simulated, see the recipe here. v8 will ease this recipe. |
Beta Was this translation helpful? Give feedback.
-
Is there support for multiple Dbs per app?
Following: https://github.com/cyrilletuzi/angular-async-local-storage/blob/master/docs/PREFIX.md I created 2 modules each providing a different prefix in the same app but the data does not store segregated as I expected.
We are on TS 3.2+ and so can't update to Version 7 and am looking for a mechanism to delete
.clear()
groups of related entities.Thank you for this excellent product!
Beta Was this translation helpful? Give feedback.
All reactions