@squidcloud/client
    Preparing search index...

    Interface RelationshipInferenceRun<ItemType>

    A relationship-inference run of a database integration.

    interface RelationshipInferenceRun<ItemType = Record<string, any>> {
        endedAt?: number;
        error?: string;
        findings: RelationshipInferenceFinding<ItemType>[];
        integrationId: string;
        options: RelationshipInferenceOptions;
        partial: boolean;
        phase:
            | "done"
            | "profiling"
            | "matching"
            | "in-table"
            | "verifying"
            | "describing"
            | "applying";
        progress: RelationshipInferenceProgress;
        removed?: string[];
        startedAt: number;
        status: "completed"
        | "failed"
        | "cancelled"
        | "running";
    }

    Type Parameters

    • ItemType = Record<string, any>
    Index
    endedAt?: number

    When the run ended, in milliseconds since the epoch.

    error?: string

    Why the run failed.

    Everything the run found, whether or not it went into the schema. Empty until the run ends.

    integrationId: string

    The ID of the database integration.

    The options the run was started with.

    partial: boolean

    True when the time budget or a cancel ended the run before it judged every candidate.

    phase:
        | "done"
        | "profiling"
        | "matching"
        | "in-table"
        | "verifying"
        | "describing"
        | "applying"

    What the run does now, or 'done'.

    How far the run got.

    removed?: string[]

    Signatures of earlier inferred items this complete run did not find again, which it removed from the stored schema.

    startedAt: number

    When the run started, in milliseconds since the epoch.

    status: "completed" | "failed" | "cancelled" | "running"

    Whether the run is still going, and how it ended.