GeoLeaf Core API - v3.19.0
    Preparing search index...
    • Applies planTwinMerge inside the version-change transaction. Never throws and never aborts: a rejected upgrade leaves the whole database unopenable, which is far worse than a twin drawn twice — a failed read or write is logged, its error event cancelled (uncancelled, it aborts the transaction), and the upgrade goes on with the twins it could not merge.

      Parameters

      • tx: IDBTransaction

        The upgrade's version-change transaction.

      Returns void

      const request = indexedDB.open("geoleaf-db", 7);
      request.onupgradeneeded = (e) => {
      if (e.oldVersion >= 4 && request.transaction) mergeIdentityTwins(request.transaction);
      };