Skip to content

How to see a list of all open (sub) databases? #215

Answered by kriszyp
azarenkovgd asked this question in Q&A
Discussion options

You must be logged in to vote

You can do a getRange() on the root database (where name is undefined or null), to get a list of all the databases, as they are all stored there. The keys for the range will be the database names. However, you need to make sure your root database has an encoding: 'binary' or you may get decoding errors.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@azarenkovgd
Comment options

Answer selected by azarenkovgd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants