Viktorani API - v0.0.8
    Preparing search index...

    Function importDatabase

    • Restore a previously exported snapshot into the local database.

      Parameters

      Returns Promise<void>

      Uses bulkPut so existing records with matching IDs are overwritten. Accepts both v1 (with categories) and v2 snapshots — categoryId fields are stripped from question records transparently.

      If the file contains an unsupported snapshot version.