LogoRobo.js
Framework

recoverWAL()

Function: recoverWAL()

function recoverWAL(adapter, config?): Promise<RecoveryResult>

Recover from any orphaned WAL entries.

Called during Flashcore.$.init() before model registration.

Recovery strategy:

  • If phase > 'pending', replay (authoritative writes started)
  • If phase == 'pending' and stale, rollback
  • If phase == 'pending' and recent, replay

Parameters

ParameterTypeDescription
adapterFlashcoreAdapter<string, unknown>The storage adapter
config?WALConfigOptional WAL configuration

Returns

Promise<RecoveryResult>

Recovery result with stats

On this page