RAILGUN Reloaded
    Preparing search index...

    Type Alias SnapshotBootstrapCapability<TPrepared>

    Minimal capability required to run atomic snapshot bootstrap.

    The portable client depends only on these operations. Runtime-specific implementations decide how staging, marker persistence, promotion, and cleanup are represented.

    type SnapshotBootstrapCapability<TPrepared> = {
        recover: () => Promise<SnapshotBootstrapRecovery>;
        prepare: (marker: SnapshotBootstrapMarker) => Promise<TPrepared>;
        promote: () => void;
        discard: () => void;
    }

    Type Parameters

    • TPrepared
    Index
    recover: () => Promise<SnapshotBootstrapRecovery>

    Finish or discard an interrupted bootstrap attempt, and report the action.

    prepare: (marker: SnapshotBootstrapMarker) => Promise<TPrepared>

    Create the staging area, persist the marker, and return the staging handle.

    promote: () => void

    Move the validated staging database into the trusted location.

    discard: () => void

    Delete the staging database and the marker.