Backup.mutation: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup Lines 184-188 of mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend&start_line=184&end_line=188 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal # Converts one surviving entry into its byte WAL put representation. def mutation(entry: ByteMemTable.Entry) -> ByteWal.Mutation: match entry: case ByteMemTable.Entry{key, Some{value}}: ByteWal.Put{key, value} case ByteMemTable.Entry{key, None{}}: ByteWal.Delete{key} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteWal.bend&name=Mutation