mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
More TODO
This commit is contained in:
1 parent
888892b92f
commit
4eff5ab357
2 files changed
+2
-1
No files matched your search
@@ -226,6 +226,7 @@ extension Database {
|
||||
///
|
||||
/// - throws: A DatabaseError if table does not exist.
|
||||
public func region(rowIds: Set<Int64>, in tableName: String) throws -> DatabaseRegion {
|
||||
// TODO: improves this.
|
||||
guard let canonicalTableName = try String.fetchOne(self, "SELECT name FROM (SELECT name, type FROM sqlite_master UNION SELECT name, type FROM sqlite_temp_master) WHERE type = 'table' AND LOWER(name) = ?", arguments: [tableName.lowercased()]) else {
|
||||
throw DatabaseError(message: "table does not exist")
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
- [ ] REGEXP https://www.sqlite.org/lang_expr.html
|
||||
- [ ] CASE x WHEN w1 THEN r1 WHEN w2 THEN r2 ELSE r3 END https://www.sqlite.org/lang_expr.html
|
||||
- [ ] Write regression tests for #156 and #157
|
||||
- [ ] TransactionObserver.stopObservingUntilNextTransaction()
|
||||
- [ ] Improve Database.region(rowIds:in:)
|
||||
|
||||
GRDB 3.0
|
||||
|
||||
|
||||
Reference in new issue
Block a user