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