@@ -141,54 +141,54 @@ private enum SchemaTable {
141141 }
142142
143143 // 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 " )
149149}
150150
151151private 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 " )
158158}
159159
160160private enum IndexInfoTable {
161161 // 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 " )
163163 // The rank of the column within the table being indexed.
164164 // 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 " )
166166 // 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 " )
168168}
169169
170170private enum IndexListTable {
171171 // 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 " )
173173 // The name of the index
174- static let nameColumn = Expression < String > ( " name " )
174+ static let nameColumn = SQLExpression < String > ( " name " )
175175 // "1" if the index is UNIQUE and "0" if not.
176- static let uniqueColumn = Expression < Int64 > ( " unique " )
176+ static let uniqueColumn = SQLExpression < Int64 > ( " unique " )
177177 // "c" if the index was created by a CREATE INDEX statement,
178178 // "u" if the index was created by a UNIQUE constraint, or
179179 // "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 " )
181181 // "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 " )
183183}
184184
185185private 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 " )
194194}
0 commit comments