Skip to content

openIndexDb

openIndexDb(storePath, options?): DatabaseSync | null

Defined in: packages/core/src/history/historyFiles.ts:161

Open the index, migrated. A missing index beside thread files is rebuilt from them first; a missing index with no thread files is created only when create is set. null when there is nothing to open. Throws when the index cannot be opened or migrated.

string

boolean

DatabaseSync | null