# Function: openDb()

```ts
function openDb(dbName, storeName): Promise<IDBDatabase>;
```

Defined in: [packages/storage/src/indexeddb/idb.ts:7](https://github.com/leifriksheim/minca/blob/main/storage/src/indexeddb/idb.ts#L7)

Opens a database, creating its one object store the first time

## Parameters

| Parameter | Type |
| ------ | ------ |
| `dbName` | `string` |
| `storeName` | `string` |

## Returns

`Promise`\<`IDBDatabase`\>
