RLMMongoDatabase
Objective-C
@interface RLMMongoDatabase : NSObject
Swift
class RLMMongoDatabase : NSObject
The RLMMongoDatabase
represents a MongoDB database, which holds a group
of collections that contain your data.
It can be retrieved from the RLMMongoClient
.
Use it to get RLMMongoCollection
s for reading and writing data.
Note
Before you can read or write data, a user must log in`.
See also
-
The name of this database
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull name;
Swift
var name: String { get }
-
Gets a collection.
Declaration
Objective-C
- (nonnull RLMMongoCollection *)collectionWithName:(nonnull NSString *)name;
Swift
func collection(withName name: String) -> RLMMongoCollection
Parameters
name
The name of the collection to return @returns The collection