Skip to content

Commit

Permalink
Fix building ApolloSQLite with Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
rastersize committed Jun 10, 2024
1 parent b52a861 commit b4f804f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public final class SQLiteDotSwiftDatabase: SQLiteDatabase {
private var db: Connection!

private let records: Table
private let keyColumn: Expression<CacheKey>
private let recordColumn: Expression<String>
private let keyColumn: SQLite.Expression<CacheKey>
private let recordColumn: SQLite.Expression<String>

public init(fileURL: URL) throws {
self.records = Table(Self.tableName)
self.keyColumn = Expression<CacheKey>(Self.keyColumnName)
Expand All @@ -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<Int64>(Self.idColumnName), primaryKey: .autoincrement)
table.column(SQLite.Expression<Int64>(Self.idColumnName), primaryKey: .autoincrement)
table.column(keyColumn, unique: true)
table.column(Expression<String>(Self.recordColumName))
table.column(SQLite.Expression<String>(Self.recordColumName))
})
try self.db.run(self.records.createIndex(keyColumn, unique: true, ifNotExists: true))
}
Expand Down

0 comments on commit b4f804f

Please sign in to comment.