Skip to content

Commit 020ec7a

Browse files
committed
Better example
1 parent 140134d commit 020ec7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SQLite.playground/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ print(columns)
114114

115115
let schemaChanger = SchemaChanger(connection: db)
116116
try schemaChanger.alter(table: "users") { table in
117-
table.add(.init(name: "age", type: .INTEGER))
117+
table.add(ColumnDefinition(name: "age", type: .INTEGER))
118118
table.rename(column: "email", to: "electronic_mail")
119119
table.drop(column: "name")
120120
}

Sources/SQLite/Schema/SchemaDefinitions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ public enum LiteralValue: Equatable, CustomStringConvertible {
154154

155155
// If there is no explicit DEFAULT clause attached to a column definition, then the default value of the
156156
// column is NULL
157-
// swiftlint:disable identifier_name
158157
case NULL
159158

160159
// Beginning with SQLite 3.23.0 (2018-04-02), SQLite recognizes the identifiers "TRUE" and
@@ -164,6 +163,7 @@ public enum LiteralValue: Equatable, CustomStringConvertible {
164163
// The boolean identifiers TRUE and FALSE are usually just aliases for the integer values 1 and 0, respectively.
165164
case TRUE
166165
case FALSE
166+
// swiftlint:disable identifier_name
167167
case CURRENT_TIME
168168
case CURRENT_DATE
169169
case CURRENT_TIMESTAMP

0 commit comments

Comments
 (0)