def source.supported

mylsm-lsm-store@0.6.0.1 · src/transfer/Migrate.bend:283

import mylsm-lsm-store@0.6.0.1/src/transfer/Migrate.bend as Migrate
import Base
import mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend as FormatInspect

283# Accepts only the durable API and storage identities promised for migration.
284def source.supported(identity: FormatInspect.Identity) -> Bool:
285  match identity:
286    case FormatInspect.Identity{package_version, storage_version, generation}:
287      String.eq(package_version, "0.5.0.0") &&
288        String.eq(storage_version, "0.4.0.0") && U32.is_eq(generation, 3)

Uses (5)

Used by (1)