{
  "schemaVersion": 1,
  "generatedAt": "2026-10-21T15:37:46.348761+00:00",
  "kind": "controlled-software-observation",
  "environment": {
    "python": "3.12.3",
    "sqlite": "3.45.1",
    "sqliteSourceId": "2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257ccalt1",
    "compileOptions": [
      "ATOMIC_INTRINSICS=1",
      "COMPILER=gcc-13.3.0",
      "DEFAULT_AUTOVACUUM",
      "DEFAULT_CACHE_SIZE=-2000",
      "DEFAULT_FILE_FORMAT=4",
      "DEFAULT_JOURNAL_SIZE_LIMIT=-1",
      "DEFAULT_MMAP_SIZE=0",
      "DEFAULT_PAGE_SIZE=4096",
      "DEFAULT_PCACHE_INITSZ=20",
      "DEFAULT_RECURSIVE_TRIGGERS",
      "DEFAULT_SECTOR_SIZE=4096",
      "DEFAULT_SYNCHRONOUS=2",
      "DEFAULT_WAL_AUTOCHECKPOINT=1000",
      "DEFAULT_WAL_SYNCHRONOUS=2",
      "DEFAULT_WORKER_THREADS=0",
      "DIRECT_OVERFLOW_READ",
      "ENABLE_COLUMN_METADATA",
      "ENABLE_DBSTAT_VTAB",
      "ENABLE_FTS3",
      "ENABLE_FTS3_PARENTHESIS",
      "ENABLE_FTS3_TOKENIZER",
      "ENABLE_FTS4",
      "ENABLE_FTS5",
      "ENABLE_LOAD_EXTENSION",
      "ENABLE_MATH_FUNCTIONS",
      "ENABLE_PREUPDATE_HOOK",
      "ENABLE_RTREE",
      "ENABLE_SESSION",
      "ENABLE_STMTVTAB",
      "ENABLE_UNLOCK_NOTIFY",
      "ENABLE_UPDATE_DELETE_LIMIT",
      "HAVE_ISNAN",
      "LIKE_DOESNT_MATCH_BLOBS",
      "MALLOC_SOFT_LIMIT=1024",
      "MAX_ATTACHED=10",
      "MAX_COLUMN=2000",
      "MAX_COMPOUND_SELECT=500",
      "MAX_DEFAULT_PAGE_SIZE=32768",
      "MAX_EXPR_DEPTH=1000",
      "MAX_FUNCTION_ARG=127",
      "MAX_LENGTH=1000000000",
      "MAX_LIKE_PATTERN_LENGTH=50000",
      "MAX_MMAP_SIZE=0x7fff0000",
      "MAX_PAGE_COUNT=0xfffffffe",
      "MAX_PAGE_SIZE=65536",
      "MAX_SCHEMA_RETRY=25",
      "MAX_SQL_LENGTH=1000000000",
      "MAX_TRIGGER_DEPTH=1000",
      "MAX_VARIABLE_NUMBER=250000",
      "MAX_VDBE_OP=250000000",
      "MAX_WORKER_THREADS=8",
      "MUTEX_PTHREADS",
      "SECURE_DELETE",
      "SOUNDEX",
      "SYSTEM_MALLOC",
      "TEMP_STORE=1",
      "THREADSAFE=1",
      "USE_URI"
    ],
    "system": "Linux",
    "kernel": "6.8.0-146-generic"
  },
  "codeSha256": {
    "multi_unique.py": "8267eb6d26c13abf115a737da934944526e6b5fd087e67ce02bb1fe9f4d3ae75",
    "observe.py": "eb5ce57e83bec1902a8d5e54a3b10052f9a3923d06adae96d6961049f6a75878"
  },
  "design": "3 operations x 2 journals x 2 recursive-trigger settings; rollback and final trial per fixture",
  "schemaSql": "\nCREATE TABLE parent(id INTEGER PRIMARY KEY, code TEXT NOT NULL UNIQUE, label TEXT NOT NULL);\nCREATE TABLE child(id INTEGER PRIMARY KEY, parent_id INTEGER NOT NULL\n REFERENCES parent(id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, payload TEXT NOT NULL);\nCREATE TABLE audit(seq INTEGER PRIMARY KEY, event TEXT, object_id INTEGER);\nINSERT INTO parent VALUES(1,'alpha','first'),(2,'beta','second'),(3,'gamma','sentinel');\nINSERT INTO child VALUES(11,1,'first-child'),(21,2,'second-child'),(31,3,'untouched');\nCREATE TRIGGER parent_delete AFTER DELETE ON parent BEGIN\n INSERT INTO audit(event,object_id) VALUES('parent-delete',old.id); END;\nCREATE TRIGGER parent_insert AFTER INSERT ON parent BEGIN\n INSERT INTO audit(event,object_id) VALUES('parent-insert',new.id); END;\nCREATE TRIGGER parent_update AFTER UPDATE ON parent BEGIN\n INSERT INTO audit(event,object_id) VALUES('parent-update',new.id); END;\nCREATE TRIGGER child_delete AFTER DELETE ON child BEGIN\n INSERT INTO audit(event,object_id) VALUES('child-delete',old.id); END;\n",
  "limits": [
    "One writer, three parents and three children; explicit primary-key UPSERT target.",
    "One INTEGER PRIMARY KEY and one BINARY-collated TEXT UNIQUE constraint.",
    "ON DELETE CASCADE, schema-deferred foreign keys, global deferral OFF.",
    "No crashes, concurrent writers, composite keys, timing or incident-rate estimates.",
    "Sorted trigger-event sets are tested; deletion ordering is not promised."
  ],
  "cases": [
    {
      "id": "DELETE-0-replace",
      "journal": "DELETE",
      "recursiveTriggers": 0,
      "operation": "replace",
      "sql": "INSERT OR REPLACE INTO parent VALUES(1,'beta','new')",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 0,
        "journal_mode": "delete",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "cb9758edfdbd6da5667dea80090fa0d768827094baf1906b94ce24ae45cc568c"
    },
    {
      "id": "DELETE-0-upsert-label",
      "journal": "DELETE",
      "recursiveTriggers": 0,
      "operation": "upsert-label",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 0,
        "journal_mode": "delete",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "f27bdec8a511934ff1185f6e5d7bde9d52299d7ff56c67764c9847a3ee0ce2a0"
    },
    {
      "id": "DELETE-0-upsert-code",
      "journal": "DELETE",
      "recursiveTriggers": 0,
      "operation": "upsert-code",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET code=excluded.code,label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 0,
        "journal_mode": "delete",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "rollback-after-statement-error",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "bcec62c798423d0e06e3825e4b00608826ac0bcebdd90b39bb2d4e22f9b8de83"
    },
    {
      "id": "DELETE-1-replace",
      "journal": "DELETE",
      "recursiveTriggers": 1,
      "operation": "replace",
      "sql": "INSERT OR REPLACE INTO parent VALUES(1,'beta','new')",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 1,
        "journal_mode": "delete",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "parent-delete",
              1
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-delete",
              2
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "parent-delete",
              1
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-delete",
              2
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "parent-delete",
              1
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-delete",
              2
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "11e9a691ee0434fb471863ade1f278077c10853489804d7d9604315f01e555ee"
    },
    {
      "id": "DELETE-1-upsert-label",
      "journal": "DELETE",
      "recursiveTriggers": 1,
      "operation": "upsert-label",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 1,
        "journal_mode": "delete",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "f27bdec8a511934ff1185f6e5d7bde9d52299d7ff56c67764c9847a3ee0ce2a0"
    },
    {
      "id": "DELETE-1-upsert-code",
      "journal": "DELETE",
      "recursiveTriggers": 1,
      "operation": "upsert-code",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET code=excluded.code,label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 1,
        "journal_mode": "delete",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "rollback-after-statement-error",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "bcec62c798423d0e06e3825e4b00608826ac0bcebdd90b39bb2d4e22f9b8de83"
    },
    {
      "id": "WAL-0-replace",
      "journal": "WAL",
      "recursiveTriggers": 0,
      "operation": "replace",
      "sql": "INSERT OR REPLACE INTO parent VALUES(1,'beta','new')",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 0,
        "journal_mode": "wal",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "4f5e228d8c188918548a58a931808a745772fdc689b970da12ee78aefa54e6be"
    },
    {
      "id": "WAL-0-upsert-label",
      "journal": "WAL",
      "recursiveTriggers": 0,
      "operation": "upsert-label",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 0,
        "journal_mode": "wal",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "d1152cb31cdb4664d85a5489fe5149006a1b33bc936afc3427857c625d22ccfd"
    },
    {
      "id": "WAL-0-upsert-code",
      "journal": "WAL",
      "recursiveTriggers": 0,
      "operation": "upsert-code",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET code=excluded.code,label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 0,
        "journal_mode": "wal",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "rollback-after-statement-error",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "7d115eeaef12310559a3b9effe718f7e7a52e97cf5c89f8fdaf11504c7e1eab2"
    },
    {
      "id": "WAL-1-replace",
      "journal": "WAL",
      "recursiveTriggers": 1,
      "operation": "replace",
      "sql": "INSERT OR REPLACE INTO parent VALUES(1,'beta','new')",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 1,
        "journal_mode": "wal",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "parent-delete",
              1
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-delete",
              2
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "parent-delete",
              1
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-delete",
              2
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "beta",
              "new"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "child-delete",
              11
            ],
            [
              "parent-delete",
              1
            ],
            [
              "child-delete",
              21
            ],
            [
              "parent-delete",
              2
            ],
            [
              "parent-insert",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "90444665034963996f589dbf146784f3ca6f7f5a8bce743bbfb5f9014b3ef14d"
    },
    {
      "id": "WAL-1-upsert-label",
      "journal": "WAL",
      "recursiveTriggers": 1,
      "operation": "upsert-label",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 1,
        "journal_mode": "wal",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": null,
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "commit",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "new"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [
            [
              "parent-update",
              1
            ]
          ],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "d1152cb31cdb4664d85a5489fe5149006a1b33bc936afc3427857c625d22ccfd"
    },
    {
      "id": "WAL-1-upsert-code",
      "journal": "WAL",
      "recursiveTriggers": 1,
      "operation": "upsert-code",
      "sql": "INSERT INTO parent VALUES(1,'beta','new') ON CONFLICT(id) DO UPDATE SET code=excluded.code,label=excluded.label",
      "settings": {
        "foreign_keys": 1,
        "recursive_triggers": 1,
        "journal_mode": "wal",
        "defer_foreign_keys": 0
      },
      "baseline": {
        "parent": [
          [
            1,
            "alpha",
            "first"
          ],
          [
            2,
            "beta",
            "second"
          ],
          [
            3,
            "gamma",
            "sentinel"
          ]
        ],
        "child": [
          [
            11,
            1,
            "first-child"
          ],
          [
            21,
            2,
            "second-child"
          ],
          [
            31,
            3,
            "untouched"
          ]
        ],
        "audit": [],
        "integrityCheck": [
          [
            "ok"
          ]
        ],
        "foreignKeyCheck": [],
        "inTransaction": false,
        "deferForeignKeys": 0
      },
      "rollback": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "final": {
        "error": {
          "phase": "statement",
          "code": 2067,
          "name": "SQLITE_CONSTRAINT_UNIQUE",
          "message": "UNIQUE constraint failed: parent.code"
        },
        "pending": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": true,
          "deferForeignKeys": 0
        },
        "finalizer": "rollback-after-statement-error",
        "reopened": {
          "parent": [
            [
              1,
              "alpha",
              "first"
            ],
            [
              2,
              "beta",
              "second"
            ],
            [
              3,
              "gamma",
              "sentinel"
            ]
          ],
          "child": [
            [
              11,
              1,
              "first-child"
            ],
            [
              21,
              2,
              "second-child"
            ],
            [
              31,
              3,
              "untouched"
            ]
          ],
          "audit": [],
          "integrityCheck": [
            [
              "ok"
            ]
          ],
          "foreignKeyCheck": [],
          "inTransaction": false,
          "deferForeignKeys": 0
        }
      },
      "closedDatabaseSha256": "7d115eeaef12310559a3b9effe718f7e7a52e97cf5c89f8fdaf11504c7e1eab2"
    }
  ]
}
