由于您将库更新为 Int64,我无法再编译我的代码。我不断遇到这样的更新方法问题:
let id = Expression<String>("id")
let categoryId = Expression<Int64>("categoryId")
let languageId = Expression<String>("languageId")
let name = Expression<String>("name")
let thumb = Expression<Blob?>("thumb")
let modificationDate = Expression<String>("modificationDate")
let isCurrent = Expression<Int64>("isCurrent")
let isLocal = Expression<Int64>("isLocal")
let needsUpdate = Expression<Int64>("needsUpdate")
let progress = Expression<Double>("progress")
let brochureToUpdate = table.filter(id == brochure.pdfId).update(isLocal <- Int64(brochure.isLocal), needsUpdate <- Int64(brochure.needsUpdate)).changes
我已将所有表达式从表达式更改为表达式,并且所有绑定到表达式的 Int 都是 Int64。
我得到:如果我删除更改,则找不到成员“更改”我得到:找不到成员“更新”