We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08bed02 commit 3def7d6Copy full SHA for 3def7d6
Sources/SQLite/Schema/SchemaChanger.swift
@@ -100,7 +100,7 @@ public class SchemaChanger: CustomStringConvertible {
100
public class AlterTableDefinition {
101
fileprivate var operations: [Operation] = []
102
103
- let name: String
+ publiclet name: String
104
105
init(name: String) {
106
self.name = name
@@ -223,6 +223,11 @@ public class SchemaChanger: CustomStringConvertible {
223
try connection.run("ALTER TABLE \(table.quote()) RENAME TO \(to.quote())")
224
}
225
226
+ // Runs arbitrary SQL. Should only be used if no predefined operations exist.
227
+ public func run(sql: String) throws {
228
+ try connection.run(sql)
229
+ }
230
+
231
private func run(table: String, operation: Operation) throws {
232
try operation.validate()
233
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments