diff --git a/Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift b/Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift index 6e4028289f..07c8118378 100644 --- a/Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift +++ b/Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift @@ -8,9 +8,9 @@ public final class SQLiteDotSwiftDatabase: SQLiteDatabase { private var db: Connection! private let records: Table - private let keyColumn: Expression - private let recordColumn: Expression - + private let keyColumn: SQLite.Expression + private let recordColumn: SQLite.Expression + public init(fileURL: URL) throws { self.records = Table(Self.tableName) self.keyColumn = Expression(Self.keyColumnName) @@ -27,9 +27,9 @@ public final class SQLiteDotSwiftDatabase: SQLiteDatabase { public func createRecordsTableIfNeeded() throws { try self.db.run(self.records.create(ifNotExists: true) { table in - table.column(Expression(Self.idColumnName), primaryKey: .autoincrement) + table.column(SQLite.Expression(Self.idColumnName), primaryKey: .autoincrement) table.column(keyColumn, unique: true) - table.column(Expression(Self.recordColumName)) + table.column(SQLite.Expression(Self.recordColumName)) }) try self.db.run(self.records.createIndex(keyColumn, unique: true, ifNotExists: true)) }