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.
Parameters
Section titled “Parameters”storePath
Section titled “storePath”string
options?
Section titled “options?”create?
Section titled “create?”boolean
Returns
Section titled “Returns”DatabaseSync | null