session-ios/SignalServiceKit/src/Storage/TSDatabaseSecondaryIndexes.h

17 lines
533 B
C
Raw Normal View History

2015-12-07 03:31:43 +01:00
//
2017-09-19 23:45:18 +02:00
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
2015-12-07 03:31:43 +01:00
//
#import <YapDatabase/YapDatabaseSecondaryIndex.h>
#import <YapDatabase/YapDatabaseTransaction.h>
@interface TSDatabaseSecondaryIndexes : NSObject
+ (YapDatabaseSecondaryIndex *)registerTimeStampIndex;
+ (void)enumerateMessagesWithTimestamp:(uint64_t)timestamp
withBlock:(void (^)(NSString *collection, NSString *key, BOOL *stop))block
usingTransaction:(YapDatabaseReadWriteTransaction *)transaction;
@end