mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
21 lines
606 B
Objective-C
21 lines
606 B
Objective-C
//
|
|
// TSDatabaseSecondaryIndexes.h
|
|
// Signal
|
|
//
|
|
// Created by Frederic Jacobs on 26/01/15.
|
|
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <YapDatabase/YapDatabaseTransaction.h>
|
|
#import <YapDatabase/YapDatabaseSecondaryIndex.h>
|
|
|
|
@interface TSDatabaseSecondaryIndexes : NSObject
|
|
|
|
+ (YapDatabaseSecondaryIndex*)registerTimeStampIndex;
|
|
|
|
+ (void)enumerateMessagesWithTimestamp:(uint64_t)timestamp withBlock:(void (^)(NSString *collection, NSString *key, BOOL *stop))block usingTransaction:(YapDatabaseReadWriteTransaction*)transaction;
|
|
|
|
@end
|