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.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			628 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			628 B
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <YapDatabase/YapDatabaseSecondaryIndex.h>
 | |
| #import <YapDatabase/YapDatabaseTransaction.h>
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @interface TSDatabaseSecondaryIndexes : NSObject
 | |
| 
 | |
| + (NSString *)registerTimeStampIndexExtensionName;
 | |
| 
 | |
| + (YapDatabaseSecondaryIndex *)registerTimeStampIndex;
 | |
| 
 | |
| + (void)enumerateMessagesWithTimestamp:(uint64_t)timestamp
 | |
|                              withBlock:(void (^)(NSString *collection, NSString *key, BOOL *stop))block
 | |
|                       usingTransaction:(YapDatabaseReadTransaction *)transaction;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |