mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			25 lines
		
	
	
		
			673 B
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			673 B
		
	
	
	
		
			C
		
	
| 
											8 years ago
										 | //
 | ||
|  | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
|  | //
 | ||
|  | 
 | ||
| 
											5 years ago
										 | #import <SignalUtilitiesKit/OWSDatabaseMigration.h>
 | ||
| 
											8 years ago
										 | 
 | ||
|  | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
|  | typedef BOOL (^DBRecordFilterBlock)(id record); | ||
|  | 
 | ||
|  | @class YapDatabaseConnection; | ||
|  | 
 | ||
|  | // Base class for migrations that resave all or a subset of
 | ||
|  | // records in a database collection.
 | ||
|  | @interface OWSResaveCollectionDBMigration : OWSDatabaseMigration | ||
|  | 
 | ||
|  | - (void)resaveDBCollection:(NSString *)collection | ||
|  |                     filter:(nullable DBRecordFilterBlock)filter | ||
|  |               dbConnection:(YapDatabaseConnection *)dbConnection | ||
|  |                 completion:(OWSDatabaseMigrationCompletion)completion; | ||
|  | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |