Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building ApolloSQLite with Xcode 16 #3391

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading