How can I find out whether the local db (indexedDB) with a given name already exists?
const db = await createRxDatabase({
name: 'heroesdb',
storage: getRxStoragePouch('idb'),
});
This approach, which is provided by the docs, just silently create a new db as long as there is no db with with the name heroesdb
.
What is the best workaround to achieve that?