Open History to see the last commit
1---
2id: CreateIndexedDBOptions
3title: CreateIndexedDBOptions
4---
5
6Defined in: packages/db/src/indexed-db.ts:86
7
8## Properties
9
10### idbFactory?
11
12```ts
13optional idbFactory: IDBFactory;
14```
15
16Defined in: packages/db/src/indexed-db.ts:94
17
18Custom IDBFactory for testing/mocking
19
20***
21
22### name
23
24```ts
25name: string;
26```
27
28Defined in: packages/db/src/indexed-db.ts:88
29
30Database name
31
32***
33
34### onBlocked()?
35
36```ts
37optional onBlocked: (event) => void;
38```
39
40Defined in: packages/db/src/indexed-db.ts:96
41
42Reports a native blocker without settling the open request.
43
44#### Parameters
45
46##### event
47
48`IDBVersionChangeEvent`
49
50#### Returns
51
52`void`
53
54***
55
56### stores
57
58```ts
59stores: readonly string[];
60```
61
62Defined in: packages/db/src/indexed-db.ts:92
63
64Object store names to create
65
66***
67
68### version
69
70```ts
71version: number;
72```
73
74Defined in: packages/db/src/indexed-db.ts:90
75
76Schema version (increment when adding stores)