Skip to content

Commit

Permalink
Squashed 'apollo-ios/' changes from b52a8610..22cc0b64
Browse files Browse the repository at this point in the history
22cc0b64 Fix building ApolloSQLite with Xcode 16b1 (#386)

git-subtree-dir: apollo-ios
git-subtree-split: 22cc0b64d8930ad234d9b618a0940e8809ad98c4
  • Loading branch information
gh-action-runner authored and gh-action-runner committed Jun 10, 2024
1 parent 81adc14 commit f589733
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ 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)
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 f589733

Please sign in to comment.