EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
SQLiteDatabase
PROTOCOL
SQLiteDatabase
Swift
1public protocol SQLiteDatabaseMethods
init(fileURL:)
Swift
1init(fileURL: URL) throwscreateRecordsTableIfNeeded()
Swift
1func createRecordsTableIfNeeded() throwsselectRawRows(forKeys:)
Swift
1func selectRawRows(forKeys keys: Set<CacheKey>) throws -> [DatabaseRow]addOrUpdateRecordString(_:for:)
Swift
1func addOrUpdateRecordString(_ recordString: String, for cacheKey: CacheKey) throwsdeleteRecord(for:)
Swift
1func deleteRecord(for cacheKey: CacheKey) throwsdeleteRecords(matching:)
Swift
1func deleteRecords(matching pattern: CacheKey) throwsclearDatabase(shouldVacuumOnClear:)
Swift
1func clearDatabase(shouldVacuumOnClear: Bool) throws