iya-sts
    Preparing search index...

    Variable deactivate

    deactivate: (
        realm: string,
        dataset: string,
        version: string,
        now: number,
    ) => Promise<any> = ...

    Type Declaration

      • (realm: string, dataset: string, version: string, now: number): Promise<any>
      • Unloads a dataset's ACTIVE version (#1152): the dataset is left with no active version (empty), the version becomes superseded so its rows can be deleted and it marked deleted, and the listeners are told, so no reader goes on answering from it. The version the removed one replaced stays the dataset's previousVersion, which is what Roll back offers.

        Parameters

        • realm: string

          the realm

        • dataset: string

          the dataset

        • version: string

          the version, which must be the active one

        • now: number

          when

        Returns Promise<any>

        { deactivated: true }, or { deactivated: false } when that version is not the active one