forked from francois/mongo_explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMEDatabase.h
31 lines (24 loc) · 808 Bytes
/
MEDatabase.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
//
// MEDatabase.h
// Mongo Explorer
//
// Created by François Beausoleil on 10-06-08.
// Copyright 2010 Solutions Technologiques Internationales. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class MEConnection;
@class MECollection;
@interface MEDatabase : NSObject {
}
@property(nonatomic, retain) MEConnection *connection;
@property(nonatomic, copy) NSString *name;
@property(nonatomic, retain) NSArray *collections;
@property(nonatomic, readonly) NSString *description;
@property(nonatomic, assign) NSUInteger sizeOnDisk;
-(id)initWithInfo:(NSDictionary *)info connection:(MEConnection *)connection;
/* Reloads the collections in this database.
*/
-(NSArray *)reload;
/* Returns the named collection, or nil if it doesn't exist. */
-(MECollection *)collectionNamed:(NSString *)name;
@end