mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
More TODO
This commit is contained in:
1 parent
6fb27b96cd
commit
b1425e0879
1 file changed
+11
@@ -226,6 +226,17 @@ class PrimaryKeyRowIDTests: RowModelTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: make this code nicer
|
||||
func testSelectWithMultiplePrimaryKeys() {
|
||||
assertNoError {
|
||||
dbQueue.inDatabase { db in
|
||||
let ids = [1,2,3]
|
||||
let questionMarks = ",".join(Array(count: ids.count, repeatedValue: "?"))
|
||||
db.fetchAll(Person.self, "SELECT * FROM persons WHERE id IN (\(questionMarks))", bindings: Bindings(ids))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func testDelete() {
|
||||
assertNoError {
|
||||
try dbQueue.inTransaction { db in
|
||||
|
||||
Reference in new issue
Block a user