From 2e8c0ce440acba2e8b8c0acb9b557af01bf51e33 Mon Sep 17 00:00:00 2001 From: Chris Laganiere Date: Tue, 3 Jun 2025 17:54:02 -0700 Subject: [PATCH] Update SQLiteDatabase.swift Add public initializer that would enable a custom SQLiteDatabase implementation --- apollo-ios/Sources/ApolloSQLite/SQLiteDatabase.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apollo-ios/Sources/ApolloSQLite/SQLiteDatabase.swift b/apollo-ios/Sources/ApolloSQLite/SQLiteDatabase.swift index 15b0f99a6..fea075890 100644 --- a/apollo-ios/Sources/ApolloSQLite/SQLiteDatabase.swift +++ b/apollo-ios/Sources/ApolloSQLite/SQLiteDatabase.swift @@ -6,6 +6,11 @@ import Apollo public struct DatabaseRow { let cacheKey: CacheKey let storedInfo: String + + public init(cacheKey: CacheKey, storedInfo: String) { + self.cacheKey = cacheKey + self.storedInfo = storedInfo + } } public enum SQLiteError: Error, CustomStringConvertible {