mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Database.create(virtualTable:using:) wraps the table creation and virtual module post actions in a save point. Fix failing test for virtual module that throws in its database(_:didCreate:using:) method.
This commit is contained in:
1 parent
825db1158c
commit
00de9bbbc5
2 files changed
+5
-5
No files matched your search
@@ -114,9 +114,11 @@ extension Database {
|
||||
chunks.append(module.moduleName + "(" + arguments.joined(separator: ", ") + ")")
|
||||
}
|
||||
let sql = chunks.joined(separator: " ")
|
||||
try execute(sql)
|
||||
|
||||
// Post creation actions
|
||||
try module.database(self, didCreate: tableName, using: definition)
|
||||
try inSavepoint {
|
||||
try execute(sql)
|
||||
try module.database(self, didCreate: tableName, using: definition)
|
||||
return .commit
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
- [ ] create(virtualTable:using:) should use a savepoint.
|
||||
- [ ] FTS5 trigger boilerplate for external content tables: https://github.com/groue/WWDCCompanion/blob/master/WWDCCompanion/Models/Database.swift
|
||||
- [ ] Row to dictionary conversion
|
||||
- [ ] FTS3Record.fetchCount(db)
|
||||
- [ ] FTS: check https://www.sqlite.org/spellfix1.html
|
||||
|
||||
Reference in new issue
Block a user