@@ -141,54 +141,54 @@ private enum SchemaTable {
141
141
}
142
142
143
143
// columns
144
- static let typeColumn = Expression < String > ( " type " )
145
- static let nameColumn = Expression < String > ( " name " )
146
- static let tableNameColumn = Expression < String > ( " tbl_name " )
147
- static let rootPageColumn = Expression < Int64 ? > ( " rootpage " )
148
- static let sqlColumn = Expression < String ? > ( " sql " )
144
+ static let typeColumn = SQLExpression < String > ( " type " )
145
+ static let nameColumn = SQLExpression < String > ( " name " )
146
+ static let tableNameColumn = SQLExpression < String > ( " tbl_name " )
147
+ static let rootPageColumn = SQLExpression < Int64 ? > ( " rootpage " )
148
+ static let sqlColumn = SQLExpression < String ? > ( " sql " )
149
149
}
150
150
151
151
private enum TableInfoTable {
152
- static let idColumn = Expression < Int64 > ( " cid " )
153
- static let nameColumn = Expression < String > ( " name " )
154
- static let typeColumn = Expression < String > ( " type " )
155
- static let notNullColumn = Expression < Int64 > ( " notnull " )
156
- static let defaultValueColumn = Expression < String ? > ( " dflt_value " )
157
- static let primaryKeyColumn = Expression < Int64 ? > ( " pk " )
152
+ static let idColumn = SQLExpression < Int64 > ( " cid " )
153
+ static let nameColumn = SQLExpression < String > ( " name " )
154
+ static let typeColumn = SQLExpression < String > ( " type " )
155
+ static let notNullColumn = SQLExpression < Int64 > ( " notnull " )
156
+ static let defaultValueColumn = SQLExpression < String ? > ( " dflt_value " )
157
+ static let primaryKeyColumn = SQLExpression < Int64 ? > ( " pk " )
158
158
}
159
159
160
160
private enum IndexInfoTable {
161
161
// The rank of the column within the index. (0 means left-most.)
162
- static let seqnoColumn = Expression < Int64 > ( " seqno " )
162
+ static let seqnoColumn = SQLExpression < Int64 > ( " seqno " )
163
163
// The rank of the column within the table being indexed.
164
164
// A value of -1 means rowid and a value of -2 means that an expression is being used.
165
- static let cidColumn = Expression < Int64 > ( " cid " )
165
+ static let cidColumn = SQLExpression < Int64 > ( " cid " )
166
166
// The name of the column being indexed. This columns is NULL if the column is the rowid or an expression.
167
- static let nameColumn = Expression < String ? > ( " name " )
167
+ static let nameColumn = SQLExpression < String ? > ( " name " )
168
168
}
169
169
170
170
private enum IndexListTable {
171
171
// A sequence number assigned to each index for internal tracking purposes.
172
- static let seqColumn = Expression < Int64 > ( " seq " )
172
+ static let seqColumn = SQLExpression < Int64 > ( " seq " )
173
173
// The name of the index
174
- static let nameColumn = Expression < String > ( " name " )
174
+ static let nameColumn = SQLExpression < String > ( " name " )
175
175
// "1" if the index is UNIQUE and "0" if not.
176
- static let uniqueColumn = Expression < Int64 > ( " unique " )
176
+ static let uniqueColumn = SQLExpression < Int64 > ( " unique " )
177
177
// "c" if the index was created by a CREATE INDEX statement,
178
178
// "u" if the index was created by a UNIQUE constraint, or
179
179
// "pk" if the index was created by a PRIMARY KEY constraint.
180
- static let originColumn = Expression < String > ( " origin " )
180
+ static let originColumn = SQLExpression < String > ( " origin " )
181
181
// "1" if the index is a partial index and "0" if not.
182
- static let partialColumn = Expression < Int64 > ( " partial " )
182
+ static let partialColumn = SQLExpression < Int64 > ( " partial " )
183
183
}
184
184
185
185
private enum ForeignKeyListTable {
186
- static let idColumn = Expression < Int64 > ( " id " )
187
- static let seqColumn = Expression < Int64 > ( " seq " )
188
- static let tableColumn = Expression < String > ( " table " )
189
- static let fromColumn = Expression < String > ( " from " )
190
- static let toColumn = Expression < String ? > ( " to " ) // when null, use primary key
191
- static let onUpdateColumn = Expression < String > ( " on_update " )
192
- static let onDeleteColumn = Expression < String > ( " on_delete " )
193
- static let matchColumn = Expression < String > ( " match " )
186
+ static let idColumn = SQLExpression < Int64 > ( " id " )
187
+ static let seqColumn = SQLExpression < Int64 > ( " seq " )
188
+ static let tableColumn = SQLExpression < String > ( " table " )
189
+ static let fromColumn = SQLExpression < String > ( " from " )
190
+ static let toColumn = SQLExpression < String ? > ( " to " ) // when null, use primary key
191
+ static let onUpdateColumn = SQLExpression < String > ( " on_update " )
192
+ static let onDeleteColumn = SQLExpression < String > ( " on_delete " )
193
+ static let matchColumn = SQLExpression < String > ( " match " )
194
194
}
0 commit comments