forked from francois/mongo_explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
MECursor.h
32 lines (24 loc) · 796 Bytes
/
MECursor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// MECursor.h
// Mongo Explorer
//
// Created by François Beausoleil on 10-06-19.
// Copyright 2010 Solutions Technologiques Internationales. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "mongo.h"
@class MECollection;
@interface MECursor : NSEnumerator {
mongo_cursor *cursor;
}
@property(nonatomic, retain) MECollection *collection;
@property(nonatomic, copy) NSDictionary *params;
@property(nonatomic, assign) NSUInteger skipCount;
@property(nonatomic, assign) NSUInteger returnCount;
@property(nonatomic, copy) NSDictionary *order;
-(id)initWithCollection:(MECollection *)aCollection query:(NSDictionary *)params;
-(MECursor *)skip:(NSUInteger)number;
-(MECursor *)limit:(NSUInteger)number;
-(MECursor *)order:(NSDictionary *)ordering;
-(NSArray *)documents;
@end