def source.manifest.present

mylsm-lsm-store@0.6.0.1 · src/transfer/MigrateIo.bend:885

import mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend as MigrateIo
import Base
import mylsm-lsm-store@0.6.0.1/src/DbLock.bend as DbLock
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs

885def source.manifest.present(
886  lock: DbLock.Lock,
887  paths: String & String
888) -> IO(Result<&1, &1, Error, SourceSnapshot>):
889  match paths:
890    case (exists_path, validation_path):
891      do IO<Result<&1, &1, Error, SourceSnapshot>>:
892        present : Result<&1, &1, U32 & String, Bool> <-
893          Fs.exists(exists_path ++ "/MANIFEST")
894        tables : TableValidation <-
895          table.manifest.present(lock, validation_path, present)
896        source.tables.validated(tables)

Uses (16)

Used by (1)