Skip to content

openThreadDb

openThreadDb(storePath, threadId, options?): DatabaseSync | null

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

Open the file of threadId, migrated and stamped with its id. null when the file does not exist and create is false. THROWS when the file cannot be opened or migrated, or holds another thread: the checkpoint saver treats that as a failed write, and every other caller is fail-soft around it.

string

string

boolean

DatabaseSync | null