2015-12-07 03:31:43 +01:00
|
|
|
//
|
2018-04-09 19:58:12 +02:00
|
|
|
// Copyright (c) 2018 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
|
|
|
|
|
2018-04-24 16:02:20 +02:00
|
|
|
+ (NSString *)registerTimeStampIndexExtensionName;
|
|
|
|
|
2015-12-07 03:31:43 +01:00
|
|
|
+ (YapDatabaseSecondaryIndex *)registerTimeStampIndex;
|
|
|
|
|
|
|
|
+ (void)enumerateMessagesWithTimestamp:(uint64_t)timestamp
|
|
|
|
withBlock:(void (^)(NSString *collection, NSString *key, BOOL *stop))block
|
2018-04-09 19:58:12 +02:00
|
|
|
usingTransaction:(YapDatabaseReadTransaction *)transaction;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
|
|
|
@end
|