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