Explorer

definy.store-read-missing-content-hashes

description
The hashes not in the CAS (without duplicates) (SQL)
type
Fn(content_hashes: List<String>, then: Fn(missing: List<String>) -> @definy.service-io) -> @definy.service-io
expression
fn(content_hashes$0, then$1) =>
  let unique$2 = @definy.strings-unique(items: $0);
  #sql<@definy.service-io>({
    statements: @definy.sql-in-statements(prefix: "SELECT content_hash FROM cas_contents WHERE content_hash IN ", items: $2),
    then: fn(results$3) =>
      let rows$4 = @definy.sql-rows-concat(results: $3, index: 0);
      $1(missing: @definy.sql-missing(hashes: $2, rows: $4))
  })
visibility
public
definy.store-read-missing-content-hashes (project definy, branch release-time-compare, snapshot JJrRgQW_LZN6tN8CbYr1dN7HosqNTuIWWYx7ACbt1n0)
id: AWpLRpX-erjUYyePoqoojT6-j_Ime9VS23WnSoK3LGg
content hash: H6fn2HV8T4CJsKNCv5zSHQlQJOr3QMcVHJCPsTLxvIM