Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.61k stars 1.39k forks source link

Swift-2.1.5版本-高级接口-联表查询 demo都跑不通 #1107

Closed yanxiaobing closed 1 month ago

yanxiaobing commented 1 month ago

`try database.create(table: "sampleTable", of: Sample.self) try database.create(table: "sampleTableMulti", of: SampleMulti.self)

let multiSelect = try database.prepareMultiSelect( on: Sample.Properties.identifier.in(table: "sampleTable"), Sample.Properties.description.in(table: "sampleTable"), SampleMulti.Properties.identifier.in(table: "sampleTableMulti"), SampleMulti.Properties.description.in(table: "sampleTableMulti"), fromTables: tables, where: Sample.Properties.identifier.in(table: "sampleTable") == SampleMulti.Properties.identifier.in(table: "sampleTableMulti") ) while let multiObject = try multiSelect.nextMultiObject() { let sample = multiObject["sampleTable"] as? Sample let sampleMulti = multiObject["sampleTableMulti"] as? SampleMulti // ... }`

prepareMultiSelect根本都没有where参数了,要通过链式去调where()

Qiuwen-chen commented 1 month ago

OK, wiki is updated.