open
Opens the store in directory, replaying its manifest and its logs.
Recovery reads CURRENT for the manifest in force, folds its edits into the set of live segments, and then replays only the logs the manifest says are still needed. Each log is checked as it goes to begin where the previous one ended; the newest may have an interrupted tail — it is the one a dying process can have been in the middle of — and is truncated back to its last complete record before it is appended to again. Any other fault is reported; see LogRecoveryMode.
Throws
if another process, or another store in this one, holds it.
if a log cannot be replayed.
if the manifest cannot be replayed.
if a segment the manifest names cannot be read.
if the files are from a newer format version.
if the directory is absent and StoreOptions.createIfMissing is false.
Outside the stable core, and this is the only entrance to it, which is why the marker is here rather than on every member of the class. Rabosh.open is the stable way to open a database; assembling the store, the schema catalog and the index catalog by hand is supported and is not a signature anything is promised about. See STABILITY.md.