fn(content_hashes$0, then$1) =>
#sql<@definy.service-io>({
statements: @definy.sql-in-statements(prefix: "SELECT content_hash, content_bytes FROM cas_contents WHERE content_hash IN ", items: $0),
then: fn(results$2) =>
let rows$3 = @definy.sql-rows-concat(results: $2, index: 0);
let row_index$9500 = @definy.sql-row-index(rows: $3, name: "content_hash");
$1(
items: @core.list-map(
T: String,
U: Union{#none, #some(@definy.content-item)},
f: fn(item$4) =>
match @definy.sql-row-find(index: $9500, value: $4) {
#some(row$5) =>
#some({content_hash: $4, content_bytes: @definy.sql-text(row: $5, name: "content_bytes")}),
#none(_) =>
#none
},
xs: $0
)
)
})