MigrateRunIo.migration.snapshot: 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 159-171 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=159&end_line=171 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.snapshot( inspection: FormatInspect.Inspection, destination: String, bundle: String, result: Result<&1, &1, MigrateIo.Error, MigrateIo.SourceSnapshot> ) -> IO(Result<&1, &1, Error, Unit>): match result: case Fail{error}: IO.pure(Result<&1, &1, Error, Unit>, Fail{Source{error}}) case Done{MigrateIo.LegacySourceSnapshot{sst_records, wal_batches, _, _, encoded_bytes}}: migration.converted(inspection, destination, bundle, encoded_bytes, Migrate.legacy.snapshot.entries(sst_records, wal_batches)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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=legacy.snapshot.entries 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/MigrateRunIo.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateRunIo.bend&name=migration.converted