Skip to content

Injection token IDB_DB_NAME is not exposed #1023

@joeskeen

Description

@joeskeen

Checks before posting an issue

Configuration

  • @ngx-pwa/local-storage version: 20.0.1
  • Angular version (ng version):
Angular CLI: 20.3.7
Node: 22.18.0
Package Manager: npm 10.9.3
OS: linux x64
    

Angular: 20.3.7
... build, cli, common, compiler, compiler-cli, core, forms
... platform-browser, router, service-worker

Package                      Version
------------------------------------
@angular-devkit/architect    0.2003.7
@angular-devkit/core         20.3.7
@angular-devkit/schematics   20.3.7
@schematics/angular          20.3.7
rxjs                         7.8.2
typescript                   5.9.3

Description of the issue

I'm needing to export/import the IndexedDb state in my application. I have a script to do that, but it requires the name of the database to export/import. I currently have 'ngStorage' hard-coded as the name of the DB in my code, but it appears that your provideIndexedDBDataBaseName function allows you to set a custom DB name. In the event that this occurs, there is no way to probe the module for the DB name, since IDB_DB_NAME is not exported (I just want to inject that token into my import/export service).

I am happy to put in a pull request for this if you would like!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions