MigrateRunIo.migration.destination.checked: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/MigrateRunIo.bend as MigrateRunIo Lines 173-190 of mylsm-lsm-store@0.6.0.1/src/transfer/MigrateRunIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateRunIo.bend&start_line=173&end_line=190 import Base import mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend as FormatInspect import mylsm-lsm-store@0.6.0.1/src/transfer/Migrate.bend as Migrate import mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend as MigrateIo def migration.destination.checked( source: String, destination: String, bundle: String, inspection: FormatInspect.Inspection, result: Result<&1, &1, U32 & String, Bool> ) -> IO(Result<&1, &1, Error, Unit>): match result: case Fail{(code, message)}: IO.pure(Result<&1, &1, Error, Unit>, Fail{Host{code, message}}) case Done{True{}}: IO.pure(Result<&1, &1, Error, Unit>, Fail{Rejected{Migrate.DestinationExists{}}}) case Done{False{}}: do IO>: snapshot : Result<&1, &1, MigrateIo.Error, MigrateIo.SourceSnapshot> <- MigrateIo.read_legacy_source(source) migration.snapshot(inspection, destination, bundle, snapshot) Uses (17): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/FormatInspect.bend&name=Inspection https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/Migrate.bend&name=Rejection https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend&name=SourceSnapshot https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend&name=read_legacy_source https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateRunIo.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateRunIo.bend&name=migration.snapshot